/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #E31E24;
  --primary-hover: #b9151a;
  --bg-dark: #0F0F0F;
  --card-dark: #161616;
  --card-border: #262626;
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sleek Announcement Top Bar */
.top-announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: #0D0D0D;
  border-bottom: 1px solid #1A1A1A;
  z-index: 1001;
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #888;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.announcement-divider {
  color: #333;
}

/* Header */
.site-header {
  position: fixed;
  top: 34px;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #202020;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.nav-links a.nav-active {
  color: var(--primary);
  font-weight: 800;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
}

.logo-text {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.1;
}

.logo-sub {
  font-size: 9px;
  color: #888;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  color: #ddd;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a.action-red {
  color: var(--primary);
  font-weight: 700;
}

.dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  background: #181818;
  border: 1px solid #282828;
  transition: all 0.2s;
}

.dept-tab:hover {
  color: #fff;
  border-color: #444;
}

.dept-tab.active {
  background: #252525;
  border-color: #444;
  color: #fff;
}

.dept-tab.gift-tab.active {
  background: rgba(227, 30, 36, 0.15);
  border-color: rgba(227, 30, 36, 0.5);
  color: #FF5560;
}

/* Search bar */
.search-form {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: #1A1A1A;
  border: 1px solid #333;
  color: #fff;
  font-size: 0.8125rem;
  border-radius: 9999px;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-badge {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  border: 1px solid #333;
  padding: 2px 6px;
  border-radius: 4px;
}

.icon-btn {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-login:hover {
  background: var(--primary-hover);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #000 0%, #0d0d0d 60%, #171717 100%);
  border-bottom: 1px solid #222;
  margin-top: 102px;
  padding: 3rem 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(227, 30, 36, 0.15);
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(227, 30, 36, 0.15);
  color: var(--primary);
  border: 1px solid rgba(227, 30, 36, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: #bbb;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.35);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1A1A1A;
  color: #fff;
  border: 1px solid #333;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #252525;
}

/* Features Bar */
.features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.feature-sub {
  font-size: 11px;
  color: #888;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.8125rem;
  color: #888;
  margin-top: 2px;
}

.section-more {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  text-decoration: underline;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  background: #161616;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-col: column;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.cat-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 2px solid #333;
  transition: border-color 0.2s;
  background: #222;
}

.category-card:hover .cat-circle {
  border-color: var(--primary);
}

.cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}

.category-card:hover .cat-name {
  color: var(--primary);
}

.cat-count {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

/* Promo Banners */
.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.promo-large {
  background: linear-gradient(90deg, #36070a 0%, #1c0e10 50%, #161616 100%);
  border: 1px solid #3f191b;
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.promo-small {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.promo-tag {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.promo-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 0.25rem 0 0.5rem;
}

.promo-desc {
  font-size: 0.8125rem;
  color: #ccc;
  max-width: 320px;
}

/* Brands section */
.brands-bar {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.brands-title {
  font-size: 11px;
  font-weight: 900;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.brands-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  gap: 1.5rem;
}

.brand-item {
  color: #777;
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.2s;
}

.brand-item:hover {
  color: #fff;
  transform: scale(1.05);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.product-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.product-card:hover {
  border-color: rgba(227, 30, 36, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Strictly fixed uniform image container for all products */
.product-thumb-wrap, .card-img-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  min-height: 270px;
  max-height: 270px;
  background: #1A1A1A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb, .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb,
.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.badge-out {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ff5555;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-info, .card-content {
  padding: 14px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: #141414;
}

.product-cat, .card-brand {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-name, .card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #1E1E1E;
}

.product-price {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.product-old-price {
  font-size: 11px;
  color: #777;
  text-decoration: line-through;
  margin-left: 6px;
}

.btn-card-add {
  background: #202020;
  border: 1px solid #333;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

.product-card:hover .btn-card-add {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Empty State */
.empty-box {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #888;
  grid-column: 1 / -1;
}

.empty-box h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #0B0B0B;
  border-top: 1px solid #222;
  padding: 4rem 0 2rem;
  color: #bbb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: #888;
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #161616;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s;
}

.social-link.tg:hover {
  background: #229ED9;
  border-color: #229ED9;
}

.social-link.ig:hover {
  background: #E1306C;
  border-color: #E1306C;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  font-size: 0.8125rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #888;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

/* Forms & UI */
.form-card {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.25rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Telegram Bot launch button in header */
.tg-bot-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(34, 158, 217, 0.4);
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(34, 158, 217, 0.15);
}
.tg-bot-launch-btn i {
  color: #229ED9;
  font-size: 15px;
  transition: transform 0.2s;
}
.tg-bot-launch-btn:hover {
  background: #229ED9;
  border-color: #229ED9;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
  transform: translateY(-1px);
}
.tg-bot-launch-btn:hover i {
  color: #fff;
  transform: scale(1.15);
}
.app-launch-btn i {
  color: var(--primary);
}
.app-launch-btn:hover i {
  color: #fff;
}

/* Gift Showcase Banner */
.gift-hero-banner {
  background: linear-gradient(135deg, #2D0B0E 0%, #170A0C 50%, #0F0F0F 100%);
  border: 1px solid rgba(227, 30, 36, 0.4);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(227, 30, 36, 0.15);
}
.gift-hero-banner::after {
  content: '🎁';
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 10rem;
  opacity: 0.08;
  pointer-events: none;
}
.gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(227, 30, 36, 0.2);
  border: 1px solid rgba(227, 30, 36, 0.5);
  color: #FF6B72;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.gift-hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}
.gift-hero-title span {
  color: #FF5560;
  background: linear-gradient(135deg, #FF6B72 0%, #E31E24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gift-hero-sub {
  font-size: 14px;
  color: #BBB;
  max-width: 600px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.gift-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.gift-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #eee;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #2A181A;
}
.gift-feat-item i {
  color: #FF5560;
}

/* Gift Cards & Badges */
.badge-gift-box {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #E31E24 0%, #A51015 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.action-gold {
  color: #FFD700 !important;
  font-weight: 700;
}
.nav-gift-link {
  color: #FF6B72 !important;
  font-weight: 700;
}

/* Checkout Gift Box */
.gift-checkout-card {
  background: linear-gradient(135deg, #1C0F11 0%, #151515 100%);
  border: 1px solid #3D1C20;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.gift-checkout-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.gift-checkout-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #E31E24;
}
.gift-toggle-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.gift-toggle-sub {
  font-size: 12px;
  color: #aaa;
}
.gift-fields-collapse {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #3D1C20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
