:root {
  --pink: #ec4899;
  --pink-dark: #d63384;
  --pink-light: #fbe1ec;
  --pink-soft: #f8c0d3;
  --topbar-bg: #2c2c2c;
  --topbar-fg: #d4d4d4;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: #333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }

a { color: var(--pink-dark); text-decoration: none; }
a:hover { color: var(--pink); }

.btn-pink { background: var(--pink); color: #fff; border: 0; }
.btn-pink:hover, .btn-pink:focus { background: var(--pink-dark); color: #fff; }
.btn-outline-pink { color: var(--pink); border: 1px solid var(--pink); background: #fff; }
.btn-outline-pink:hover { background: var(--pink); color: #fff; }
.bg-pink { background: var(--pink) !important; }
.text-pink { color: var(--pink) !important; }

/* ---- top dark bar ---- */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  padding: 8px 0;
  font-size: .85rem;
}
.topbar a { color: var(--topbar-fg); }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--pink); margin-right: 4px; }

/* ---- main header (white, logo + nav) ---- */
.main-header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.logo {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.logo-cosmeti { color: #2c2c2c; }
.logo-kg { color: var(--pink); }

.main-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  justify-content: flex-end;
}
.main-nav-links a {
  display: inline-block;
  padding: 8px 14px;
  color: #444;
  font-weight: 500;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  border-radius: 4px;
  transition: color .15s;
}
.main-nav-links a:hover { color: var(--pink); }

/* ---- pink bar with categories/search/cart ---- */
.pink-bar {
  background: var(--pink-soft);
  padding: 16px 0;
}
.cat-button {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  justify-content: space-between;
}
.cat-button:hover { background: var(--pink-dark); color: #fff; }
.search-form { display: flex; }
.search-form .form-control {
  border-radius: 30px 0 0 30px;
  border: 1px solid #fff;
  background: #fff;
  padding: 10px 18px;
  font-size: .95rem;
}
.search-form .form-control:focus { box-shadow: none; outline: none; border-color: var(--pink); }
.search-form .btn {
  border-radius: 0 30px 30px 0;
  background: var(--pink);
  color: #fff;
  border: 0;
  padding: 0 22px;
}
.search-form .btn:hover { background: var(--pink-dark); }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.cart-pill:hover { background: var(--pink-dark); color: #fff; }
.cart-pill .cart-badge {
  background: #fff;
  color: var(--pink);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

/* dropdown for categories */
.cat-dropdown {
  position: relative;
}
.cat-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  padding: 14px;
  min-width: 280px;
  margin-top: 4px;
}
.cat-dropdown:hover .cat-dropdown-content,
.cat-dropdown.open .cat-dropdown-content {
  display: block;
}
.cat-dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #444;
  border-radius: 4px;
  font-size: .92rem;
}
.cat-dropdown-content a:hover { background: var(--pink-light); color: var(--pink-dark); }

/* ---- product card ---- */
.product-card {
  background: #fff; border-radius: 8px; padding: 12px; height: 100%;
  display: flex; flex-direction: column; position: relative;
  border: 1px solid #f3f3f3;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-3px); }
.product-card .img-wrap { aspect-ratio: 1; background: #fafafa; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .brand { font-size: .72rem; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-top: 8px; }
.product-card .name { font-size: .9rem; color: #333; margin: 4px 0; line-height: 1.3; min-height: 2.6em; text-decoration: none; }
.product-card .name:hover { color: var(--pink); }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: var(--pink-dark); }
.product-card .old-price { font-size: .8rem; color: #aaa; text-decoration: line-through; margin-left: 6px; }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.product-card .badge-hit { background: var(--pink); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; }
.product-card .badge-new { background: #4caf50; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; }
.product-card .badge-sale { background: #ff7043; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; }

/* ---- sections ---- */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 40px 0 25px;
  position: relative;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-title::before, .section-title::after {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: #ddd;
  vertical-align: middle;
  margin: 0 20px;
}

/* hero banners */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 202px 202px;
  gap: 16px;
  margin: 24px 0;
}
.hero-grid .hero-main {
  grid-row: 1 / 3;
  border-radius: 10px;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  display: block;
  box-shadow: 0 4px 18px rgba(214, 51, 132, .15);
}
.hero-grid .hero-side {
  border-radius: 10px;
  overflow: hidden;
  height: 202px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  display: block;
  box-shadow: 0 4px 14px rgba(214, 51, 132, .12);
}
.hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-grid .hero-main { grid-row: auto; height: 240px; }
  .hero-grid .hero-side { height: 160px; }
}

/* category tile */
.category-tile {
  background: #fff;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  text-decoration: none;
  display: block;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.category-tile i { font-size: 2.4rem; color: var(--pink); }
.category-tile .ct-name { color: #444; margin-top: 8px; font-size: .9rem; font-weight: 500; }

/* brand tile */
.brand-tile {
  background: #fff;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  font-size: .95rem;
  transition: all .2s;
}
.brand-tile:hover { color: var(--pink); border-color: var(--pink); }

/* filter sidebar */
.filter-sidebar { background: #fff; border: 1px solid #f3f3f3; border-radius: 8px; padding: 16px; }
.filter-sidebar h6 { font-weight: 700; margin-top: 1rem; color: #2c2c2c; }

/* footer */
.site-footer {
  background: var(--pink-soft);
  margin-top: 60px;
  padding: 50px 0 20px;
  color: #2c2c2c;
}
.site-footer h5, .site-footer h6 { color: #2c2c2c; font-weight: 600; margin-bottom: 16px; }
.site-footer a { color: #2c2c2c; }
.site-footer a:hover { color: var(--pink-dark); }
.site-footer .footer-bottom {
  border-top: 1px dashed #d68aaa;
  margin-top: 24px;
  padding-top: 16px;
  font-size: .85rem;
}
.site-footer .social-icons a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%;
  margin-right: 6px;
  font-size: 1rem;
}
.site-footer .social-icons a:hover { background: var(--pink); color: #fff; }

/* product page */
.product-page .gallery img { max-height: 460px; object-fit: contain; }
.product-page .price-block { font-size: 2rem; font-weight: 800; color: var(--pink-dark); }
.product-page .old-price { font-size: 1.2rem; color: #aaa; text-decoration: line-through; }

/* cart */
.cart-table img { max-width: 70px; max-height: 70px; object-fit: cover; border-radius: 4px; }

/* accounting kpi */
.kpi-card { background: #fff; border: 1px solid #f3f3f3; border-radius: 8px; padding: 18px; }
.kpi-card .label { font-size: .85rem; color: #888; }
.kpi-card .value { font-size: 1.8rem; font-weight: 700; }
.kpi-positive { color: #198754; }
.kpi-negative { color: #dc3545; }

/* alerts */
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* utility */
.bg-soft-pink { background: var(--pink-light); }
