﻿/* ============================================================
   Terbium  style.css
   Theme: Clean White + Teal/Blue Accent
   ============================================================ */

/* -- Variables ---------------------------------------------- */
:root {
  --primary:       #007bff;
  --primary-dark:  #0056b3;
  --primary-light: #1e3a8a;
  --accent:        #ff6600;
  --accent-dark:   #cc5200;
  --danger:        #ef4444;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 24px rgba(0,0,0,.14);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    .2s ease;
}

/* -- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* -- Container ---------------------------------------------- */
.container { width: 94%; max-width: 1300px; margin: 0 auto; }

/* -- NAVBAR ------------------------------------------------- */
.navbar {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.navbar-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 0;
}
.navbar .logo {
  font-size: 1.6rem; font-weight: 800;
  color: var(--primary); white-space: nowrap;
  flex-shrink: 0;
}
.navbar .logo span { color: var(--accent); }
.search-bar {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 50px; overflow: hidden;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1; padding: .55rem 1rem; border: none; background: transparent;
  font-size: .95rem; outline: none;
}
.search-bar button {
  padding: .55rem 1.2rem; background: var(--primary); color: #fff;
  font-weight: 600; font-size: .95rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-actions a {
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: color var(--transition);
}
.nav-actions a:hover { color: var(--primary); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* -- CATEGORY NAV ------------------------------------------- */
.cat-nav {
  background: var(--primary); border-bottom: 1px solid var(--primary-dark);
}
.cat-nav ul { display: flex; gap: 0; overflow-x: auto; }
.cat-nav ul::-webkit-scrollbar { height: 3px; }
.cat-nav ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); }
.cat-nav a {
  display: block; padding: .5rem 1.1rem;
  color: rgba(255,255,255,.88); font-size: .88rem; font-weight: 500;
  white-space: nowrap; transition: background var(--transition);
}
.cat-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* -- BUTTONS ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1.4rem;
  border-radius: var(--radius); font-weight: 600; font-size: .93rem;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-accent {
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; border: 2px solid var(--danger); }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* -- HERO --------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
  color: #fff; padding: 4.5rem 0; text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: .75rem; }
.hero p { font-size: 1.2rem; opacity: .88; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-white {
  background: #fff; color: var(--primary);
  border: 2px solid #fff; font-weight: 700;
}
.hero-btns .btn-white:hover { background: var(--primary-light); }
.hero-btns .btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.7); font-weight: 600;
}
.hero-btns .btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* -- SECTION TITLES ----------------------------------------- */
.section { padding: 3rem 0; }
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.55rem; font-weight: 700; color: var(--text); }
.section-header a { color: var(--primary); font-size: .9rem; font-weight: 600; }
.section-header a:hover { text-decoration: underline; }
.section-divider {
  border: none; border-top: 3px solid var(--primary);
  width: 50px; margin-bottom: 1.5rem;
}

/* -- CATEGORY CARDS ----------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.4rem 1rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.cat-icon { font-size: 2.4rem; margin-bottom: .5rem; }
.cat-card h3 { font-size: .85rem; font-weight: 600; color: var(--text); }

/* -- FLASH SALE --------------------------------------------- */
.flash-sale-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f766e 100%);
  border-radius: var(--radius-lg); padding: 2rem; margin: 1rem 0;
}
.flash-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.flash-header h2 { color: #fff; font-size: 1.4rem; font-weight: 700; }
.flash-badge {
  background: var(--danger); color: #fff;
  padding: .2rem .7rem; border-radius: 50px; font-size: .8rem; font-weight: 700;
}
.countdown { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.count-box {
  background: #fff; color: var(--text);
  padding: .35rem .6rem; border-radius: 6px;
  font-weight: 700; font-size: 1rem; min-width: 38px; text-align: center;
}
.count-sep { color: #fff; font-weight: 700; font-size: 1.1rem; }
.flash-scroll { overflow-x: auto; padding-bottom: 1rem; }
.flash-scroll::-webkit-scrollbar { height: 4px; }
.flash-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }
.flash-products { display: flex; gap: 1rem; width: max-content; }
.flash-products .product-card { width: 200px; flex-shrink: 0; }

/* -- PRODUCT CARD ------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.product-img-wrap {
  position: relative; overflow: hidden;
  background: #f1f5f9; aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--success); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 4px;
}
.product-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: #f59e0b; font-size: .78rem; margin-bottom: .3rem; }
.stars span { color: var(--text-muted); font-size: .75rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-orig { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }
.btn-cart {
  margin-top: auto; width: 100%;
  background: var(--primary-light); color: var(--primary-dark);
  border: 1.5px solid var(--primary); border-radius: var(--radius);
  padding: .45rem; font-weight: 600; font-size: .85rem;
  transition: all var(--transition);
}
.btn-cart:hover { background: var(--primary); color: #fff; }

/* -- WHY Terbium ------------------------------------------- */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); }
.why-icon { font-size: 2.4rem; margin-bottom: .75rem; }
.why-card h3 { font-weight: 700; margin-bottom: .4rem; }
.why-card p { font-size: .88rem; color: var(--text-muted); }

/* -- PRODUCT LISTING PAGE ----------------------------------- */
.listing-layout { display: flex; gap: 1.5rem; padding: 2rem 0; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 1.5rem;
  height: fit-content; position: sticky; top: 80px;
}
.sidebar h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .75rem; margin-top: 1.2rem; }
.sidebar h3:first-child { margin-top: 0; }
.filter-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.category-list li { margin-bottom: .4rem; }
.category-list label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; }
.price-inputs { display: flex; gap: .5rem; align-items: center; }
.price-inputs input { width: 80px; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 6px; font-size: .88rem; }
.price-inputs span { color: var(--text-muted); }
.rating-filters { display: flex; flex-direction: column; gap: .4rem; }
.rating-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .85rem; color: var(--text);
  transition: all var(--transition); cursor: pointer; background: var(--white);
}
.rating-btn.active, .rating-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.rating-btn .stars-text { color: #f59e0b; }
.listing-main { flex: 1; min-width: 0; }
.listing-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem; background: var(--white);
  padding: .75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.listing-topbar .results-count { font-size: .9rem; color: var(--text-muted); }
.sort-select {
  padding: .4rem .8rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .88rem; outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--primary); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; margin-top: 2rem;
}
.page-btn {
  padding: .45rem .8rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .88rem; background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* -- PRODUCT DETAIL PAGE ------------------------------------ */
.breadcrumb {
  padding: 1rem 0; font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .4rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
.detail-layout { display: flex; gap: 3rem; padding: 1.5rem 0 3rem; }
.detail-img-col { width: 420px; flex-shrink: 0; }
.detail-img {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 1;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.3; }
.detail-rating { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.detail-rating .stars { font-size: 1rem; }
.rating-val { font-weight: 700; color: var(--primary); }
.rating-count { color: var(--text-muted); font-size: .88rem; }
.price-section { background: var(--bg); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--text); }
.detail-orig { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: .5rem; }
.detail-discount { display: inline-block; background: var(--success); color: #fff; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; margin-left: .5rem; }
.stock-status { font-size: .9rem; color: var(--success); font-weight: 600; margin-bottom: 1.2rem; }
.stock-status.out { color: var(--danger); }
.qty-selector { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.qty-selector label { font-weight: 600; }
.qty-btn { width: 36px; height: 36px; border: 2px solid var(--border); border-radius: 6px; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 50px; text-align: center; border: 2px solid var(--border); border-radius: 6px; padding: .4rem; font-size: 1rem; font-weight: 600; outline: none; }
.qty-input:focus { border-color: var(--primary); }
.detail-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.detail-actions .btn { flex: 1; padding: .85rem; font-size: 1rem; }
.product-description h3 { font-weight: 700; margin-bottom: .6rem; }
.product-description p { color: var(--text-muted); line-height: 1.7; }

/* -- CART PAGE ---------------------------------------------- */
.cart-layout { display: flex; gap: 1.5rem; padding: 2rem 0; align-items: flex-start; }
.cart-items { flex: 1; }
.cart-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.cart-item {
  display: flex; gap: 1rem; padding: 1.25rem; margin-bottom: .75rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); align-items: center;
}
.cart-item-img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: .25rem; }
.cart-item-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.cart-item-controls { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.remove-btn { color: var(--danger); font-size: .82rem; font-weight: 600; cursor: pointer; }
.remove-btn:hover { text-decoration: underline; }
.cart-item-total { font-weight: 700; font-size: 1.05rem; }
.cart-summary {
  width: 300px; flex-shrink: 0; position: sticky; top: 80px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.cart-summary h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .92rem; }
.summary-row.discount { color: var(--success); }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; padding-top: .75rem; border-top: 1px solid var(--border); margin-top: .5rem; }
.cart-empty { text-align: center; padding: 5rem 0; }
.cart-empty .empty-icon { font-size: 5rem; margin-bottom: 1rem; }
.cart-empty h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.cart-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* -- CHECKOUT PAGE ------------------------------------------ */
.checkout-layout { display: flex; gap: 1.5rem; padding: 2rem 0; align-items: flex-start; }
.checkout-form { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.checkout-form h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
.form-control {
  width: 100%; padding: .65rem .9rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: .93rem; outline: none; transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-summary { width: 300px; flex-shrink: 0; }
.order-summary-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; }
.order-summary-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.order-item { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.order-item img { width: 55px; height: 55px; object-fit: cover; border-radius: 6px; }
.order-item-name { font-size: .85rem; font-weight: 600; }
.order-item-meta { font-size: .8rem; color: var(--text-muted); }

/* -- AUTH PAGES --------------------------------------------- */
.auth-wrapper { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.auth-logo span { color: var(--accent); }
.auth-card h2 { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.auth-card .form-group { margin-bottom: 1rem; }
.auth-card .btn { margin-top: .5rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .25rem; display: none; }
.field-error.show { display: block; }
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* -- ACCOUNT PAGE ------------------------------------------- */
.account-layout { display: flex; gap: 1.5rem; padding: 2rem 0; align-items: flex-start; }
.account-sidebar { width: 240px; flex-shrink: 0; }
.account-sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.profile-snippet { padding: 1.5rem; text-align: center; border-bottom: 1px solid var(--border); }
.avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.profile-snippet h3 { font-size: 1rem; font-weight: 700; }
.profile-snippet p { font-size: .82rem; color: var(--text-muted); }
.sidebar-nav a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; font-size: .9rem; font-weight: 500; color: var(--text); transition: all var(--transition); border-left: 3px solid transparent; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); }
.account-main { flex: 1; }
.account-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: none; }
.account-panel.active { display: block; }
.account-panel h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.profile-display .profile-row { display: flex; margin-bottom: .75rem; }
.profile-label { width: 130px; font-weight: 600; color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
.profile-val { font-size: .9rem; }
.profile-display { margin-bottom: 1.5rem; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
.orders-table th { background: var(--bg); font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--text-muted); }
.orders-table tr:hover { background: var(--bg); }
.status-badge { display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.status-pending  { background: #fef9c3; color: #854d0e; }
.status-confirmed{ background: #dbeafe; color: #1e40af; }
.status-shipped  { background: #fed7aa; color: #9a3412; }
.status-delivered{ background: #dcfce7; color: #14532d; }
.order-items-row td { padding: 0 1rem; background: var(--bg); }
.order-items-expand { padding: 1rem 0; }
.order-item-mini { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; font-size: .85rem; }
.order-item-mini img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* -- FOOTER ------------------------------------------------- */
.footer { background: #1e293b; color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .87rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-newsletter input { width: 100%; padding: .55rem .8rem; border: none; border-radius: 6px 0 0 6px; font-size: .88rem; background: rgba(255,255,255,.1); color: #fff; outline: none; border: 1px solid rgba(255,255,255,.15); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter form { display: flex; }
.footer-newsletter button { padding: .55rem 1rem; background: var(--primary); color: #fff; border: none; border-radius: 0 6px 6px 0; font-weight: 600; font-size: .85rem; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; justify-content: space-between; font-size: .83rem; color: rgba(255,255,255,.45); }
.social-links { display: flex; gap: .75rem; margin-top: .75rem; }
.social-links a { font-size: 1.3rem; }

/* -- TOAST -------------------------------------------------- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--text); color: #fff;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all .3s ease; z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* -- MODAL -------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 5000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 420px; width: 90%; text-align: center; transform: scale(.9); transition: transform var(--transition); }
.modal-overlay.show .modal { transform: scale(1); }
.modal-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.modal h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.modal p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* -- LOADING SPINNER ---------------------------------------- */
.spinner-wrap { display: flex; justify-content: center; padding: 3rem; grid-column: 1 / -1; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-results { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.no-results .icon { font-size: 3rem; margin-bottom: 1rem; }

/* -- RESPONSIVE --------------------------------------------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .listing-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { flex-direction: column; }
  .detail-img-col { width: 100%; }
  .account-layout { flex-direction: column; }
  .account-sidebar { width: 100%; }
  .checkout-layout { flex-direction: column; }
  .order-summary { width: 100%; }
  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(1, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar .logo { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
}
/* ============================================================
   Terbium  style.css
   Theme: Clean White + Teal/Blue Accent (Enhanced UI)
   ============================================================ */

/* -- Variables ---------------------------------------------- */
:root {
  --primary:       #007bff;
  --primary-dark:  #0056b3;
  --primary-light: #1e3a8a;
  --accent:        #ff6600;
  --accent-dark:   #cc5200;
  --danger:        #ef4444;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 4px rgba(0,0,0,.04);
  --shadow:        0 8px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.12);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* -- Container ---------------------------------------------- */
.container { width: 94%; max-width: 1300px; margin: 0 auto; }

/* -- NAVBAR ------------------------------------------------- */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.navbar-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
}
.navbar .logo {
  font-size: 1.8rem; font-weight: 800;
  color: var(--primary); white-space: nowrap;
  flex-shrink: 0; letter-spacing: -0.5px;
}
.navbar .logo span { color: var(--accent); }
.search-bar {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 2px solid transparent;
  border-radius: 50px; overflow: hidden;
  transition: all var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.search-bar:focus-within { 
  border-color: var(--primary); 
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.search-bar input {
  flex: 1; padding: .65rem 1.2rem; border: none; background: transparent;
  font-size: .95rem; outline: none;
}
.search-bar button {
  padding: .65rem 1.5rem; background: var(--primary); color: #fff;
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.nav-actions a {
  font-size: .95rem; font-weight: 600; color: var(--text);
  transition: color var(--transition);
}
.nav-actions a:hover { color: var(--primary); }
.cart-link { position: relative; display: flex; align-items: center; gap: 0.25rem; }
.cart-badge {
  position: absolute; top: -10px; right: -12px;
  background: var(--danger); color: #fff;
  font-size: .7rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* -- CATEGORY NAV ------------------------------------------- */
.cat-nav {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-bottom: none;
}
.cat-nav ul { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0; }
.cat-nav ul::-webkit-scrollbar { height: 3px; }
.cat-nav ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); }
.cat-nav a {
  display: block; padding: .6rem 1.2rem; border-radius: 50px;
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600;
  white-space: nowrap; transition: all var(--transition);
}
.cat-nav a:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-1px); }

/* -- BUTTONS ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1.4rem;
  border-radius: var(--radius); font-weight: 600; font-size: .93rem;
  transition: all var(--transition); cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 14px rgba(13, 148, 136, 0.4); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-accent {
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; border: 2px solid var(--danger); }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* -- HERO --------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
  color: #fff; padding: 6rem 0; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
}
.hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { font-size: 1.25rem; opacity: .9; margin-bottom: 2.5rem; text-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-white {
  background: #fff; color: var(--primary-dark);
  border: 2px solid #fff; font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-btns .btn-white:hover { background: var(--bg); transform: translateY(-2px); }
.hero-btns .btn-outline-white {
  background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(5px);
  border: 2px solid rgba(255,255,255,.8); font-weight: 600;
}
.hero-btns .btn-outline-white:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* -- SECTION TITLES ----------------------------------------- */
.section { padding: 4rem 0; }
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 2rem;
}
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.section-header a { color: var(--primary); font-size: .95rem; font-weight: 700; background: var(--primary-light); padding: 0.4rem 1rem; border-radius: 50px; transition: all var(--transition); }
.section-header a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.section-divider {
  border: none; border-top: 4px solid var(--primary);
  width: 60px; margin-bottom: 2rem; border-radius: 2px;
}

/* -- CATEGORY CARDS ----------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.cat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.8rem 1rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cat-icon { font-size: 2.8rem; margin-bottom: .75rem; transition: transform var(--transition); }
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); }

/* -- PRODUCT CARD ------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img-wrap {
  position: relative; overflow: hidden;
  background: #f1f5f9; aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.discount-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger); color: #fff;
  font-size: .75rem; font-weight: 800;
  padding: .25rem .6rem; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.stars { color: #f59e0b; font-size: .85rem; margin-bottom: .5rem; }
.stars span { color: var(--text-muted); font-size: .8rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.price-orig { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.btn-cart {
  margin-top: auto; width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6rem; font-weight: 700; font-size: .9rem;
  transition: all var(--transition);
}
.btn-cart:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3); }

/* ... (Remaining UI components strictly follow the provided structure with these enhanced visual rules applied organically via global transitions and shadows) ... */
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
     . n a v b a r - i n n e r   {   f l e x - w r a p :   w r a p ;   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   } 
     . s e a r c h - b a r   {   o r d e r :   3 ;   w i d t h :   1 0 0 % ;   m a r g i n - t o p :   1 0 p x ;   f l e x :   1   1   1 0 0 % ;   } 
     . n a v - a c t i o n s   {   g a p :   1 r e m ;   } 
     . c a t - g r i d   {   g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( 2 ,   1 f r )   ! i m p o r t a n t ;   g a p :   1 0 p x ;   } 
     . p r o d u c t s - g r i d   {   g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( 2 ,   1 f r )   ! i m p o r t a n t ;   g a p :   1 0 p x ;   } 
     . h e r o   {   p a d d i n g :   3 r e m   0 ;   } 
     . h e r o   h 1   {   f o n t - s i z e :   2 . 2 r e m   ! i m p o r t a n t ;   } 
     . s e c t i o n   {   p a d d i n g :   2 r e m   0 ;   } 
 } 
  
 

@media (max-width: 768px) {
  .navbar-inner { flex-wrap: wrap; justify-content: space-between; }
  .search-bar { order: 3; width: 100%; margin-top: 10px; flex: 1 1 100%; }
  .nav-actions { gap: 1rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2.2rem !important; }
  .section { padding: 2rem 0; }
}

