:root {
  --brown: #8b5e3c;
  --yellow: #f4c430;
  --text: #222;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--white); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 94%); margin: 0 auto; }
.topbar { background: var(--yellow); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar select { border: none; background: transparent; font-size: 13px; }
.topbar-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08); }
.main-header { display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; padding: 16px 0; gap: 22px; }
.search-wrap { display: grid; grid-template-columns: 180px 1fr 120px; border: 2px solid #ececec; border-radius: 40px; overflow: hidden; }
.search-wrap select, .search-wrap input, .search-wrap button { border: none; padding: 13px 14px; font-size: 14px; }
.search-wrap input { border-left: 1px solid #ececec; }
.search-wrap button { background: var(--brown); color: var(--white); font-weight: 600; cursor: pointer; }
.header-actions { display: flex; justify-content: flex-end; gap: 12px; }
.action-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f2f2f2; transition: all 0.25s ease; }
.action-btn:hover { background: var(--yellow); transform: translateY(-2px); }
.inline-icon { width: 18px; height: 18px; fill: currentColor; display: inline-block; color: #222; }
.navbar { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; }
.navlinks { display: flex; gap: 20px; font-weight: 600; font-size: 14px; }
.navlinks a.active, .navlinks a:hover { color: var(--brown); }
.hero-grid { margin: 20px auto; display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.sidebar { background: var(--white); border: 1px solid #ececec; border-radius: var(--radius); overflow: hidden; }
.sidebar h3 { margin: 0; background: #faf3eb; color: var(--brown); padding: 15px; font-size: 16px; }
.sidebar ul { list-style: none; margin: 0; padding: 8px 0; }
.sidebar li a { display: block; padding: 10px 15px; border-left: 3px solid transparent; color: #444; }
.sidebar li a:hover { background: #fafafa; border-left-color: var(--yellow); color: var(--brown); }
.hero { background: linear-gradient(120deg, #0d2f90, #1f45b5); color: #fff; border-radius: var(--radius); min-height: 330px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 26px; overflow: hidden; }
.hero img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; }
.tag { display: inline-block; background: rgba(255,255,255,0.18); padding: 5px 10px; border-radius: 16px; font-size: 13px; }
.hero h1 { margin: 12px 0; font-size: 42px; line-height: 1.1; }
.btn { display: inline-block; background: var(--yellow); color: #000; font-weight: 700; border-radius: 40px; padding: 11px 21px; transition: all 0.25s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
section { padding: 34px 0; }
.section-title { margin: 0 0 18px; font-size: 26px; }
.category-cards, .promo-grid, .product-grid, .blog-grid, .brand-grid, .related-grid { display: grid; gap: 16px; }
.category-cards { grid-template-columns: repeat(4, 1fr); }
.category-card, .product-card, .blog-card, .brand-card, .side-list, .filter-box, .detail-card { background: var(--white); border-radius: var(--radius); border: 1px solid #ececec; box-shadow: var(--shadow); }
.category-card { display: flex; gap: 12px; align-items: center; padding: 14px; }
.category-card img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.promo-grid { grid-template-columns: repeat(3, 1fr); }
.promo { border-radius: var(--radius); min-height: 190px; overflow: hidden; position: relative; }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo span { position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,0.6); color: #fff; padding: 9px 12px; border-radius: 8px; font-weight: 700; }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card { padding: 12px; transition: all 0.25s ease; }
.product-card:hover { transform: translateY(-7px); }
.product-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.stars { display: inline-flex; gap: 2px; line-height: 1; }
.star { width: 14px; height: 14px; color: #d6d6d6; display: inline-flex; }
.star.filled { color: #f5a623; }
.star-icon { width: 100%; height: 100%; fill: currentColor; }
.price { color: var(--brown); font-weight: 700; }
.offer-banner { background: linear-gradient(100deg, #1329a8, #2548ce); color: #fff; border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
.offer-banner img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.trending-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.side-list { padding: 15px; }
.side-item { display: flex; gap: 10px; margin-bottom: 12px; }
.side-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.brand-grid { grid-template-columns: repeat(6, 1fr); }
.brand-card { padding: 16px; text-align: center; font-size: 13px; color: #666; font-weight: 700; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px 14px 0 0; }
.blog-card .content { padding: 14px; }
.footer { margin-top: 30px; background: #1c2da0; color: #fff; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 20px; padding: 38px 0 28px; }
.footer h4 { margin: 0 0 12px; }
.footer a { color: #fff; opacity: 0.9; display: block; margin: 8px 0; font-size: 14px; }
.footer input { width: 100%; padding: 12px; border: none; border-radius: 8px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); padding: 14px 0; text-align: center; font-size: 13px; }
.page-hero { background: linear-gradient(120deg, #f8f3ef, #fff); padding: 44px 0; border-bottom: 1px solid #eee; }
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.filter-box { padding: 15px; margin-bottom: 14px; }
.filters input, .filters select, .form-card input, .form-card textarea { width: 100%; padding: 11px; border: 1px solid #ddd; border-radius: 8px; margin: 8px 0; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.pagination a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; }
.pagination a.active, .pagination a:hover { background: var(--yellow); border-color: var(--yellow); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.gallery-main img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs img { width: 100%; height: 74px; object-fit: cover; border-radius: 10px; }
.form-card { background: #fff; max-width: 700px; margin: 0 auto; padding: 22px; border-radius: var(--radius); border: 1px solid #e9e9e9; box-shadow: var(--shadow); }
.error { color: #cb1f1f; font-size: 13px; min-height: 16px; }
.success { color: #0b7a2e; font-size: 14px; margin-top: 8px; }
.policy article { margin-bottom: 20px; }
@media (max-width: 1024px) {
  .main-header { grid-template-columns: 1fr; }
  .header-actions { justify-content: flex-start; }
  .hero-grid, .offer-banner, .trending-grid, .two-col, .detail-layout { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .promo-grid, .product-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .search-wrap { grid-template-columns: 1fr; border-radius: 14px; }
  .search-wrap input { border-left: none; border-top: 1px solid #ececec; }
  .navlinks { overflow-x: auto; gap: 14px; }
  .hero h1 { font-size: 30px; }
  .category-cards, .promo-grid, .product-grid, .blog-grid, .brand-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
}
