/* ============================================
   EXACT REPLICA STYLES - eliashop.store clone
   Colors, fonts, layout from original
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #101f82;
  --accent: #45c1c7;
  --light-accent: #ffe6d4;
  --text-color: #3c3731;
  --text-muted: #6e6a67;
  --text-light: #9199ab;
  --bg-white: #fff;
  --bg-light: #f7f8fa;
  --bg-light2: #edf0f5;
  --sale-red: #cc3833;
  --success-green: #61a854;
  --btn-hover: #3c3731;
  --border-color: #e0e3e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
  --font-body: 'Noto Sans', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --font-button: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover { color: var(--primary); background: var(--bg-light); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Header icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  transition: all 0.2s;
  color: var(--text-color);
}

.social-icon:hover { background: var(--primary); color: #fff; }

.social-icon svg { width: 18px; height: 18px; }

.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  transition: all 0.2s;
}

.cart-btn:hover { background: var(--primary); color: #fff; }

.cart-btn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sale-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.visible { display: flex; }

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero Banner --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2f9e 50%, var(--accent) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(69,193,199,0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* --- Catalog Section --- */
.catalog {
  padding: 40px 0 60px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-color);
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Search */
.search-box {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

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

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  padding-top: 100%;
  background: var(--bg-light);
  overflow: hidden;
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sale-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.product-card-body { padding: 16px; }

.product-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-card-stock {
  font-size: 12px;
  color: var(--success-green);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-green);
}

.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
  background: var(--btn-hover);
  transform: scale(1.02);
}

/* --- Product Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-white);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all 0.2s;
}

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

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-info h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-price .price-current { font-size: 28px; }
.modal-price .price-old { font-size: 18px; }

.modal-stock {
  color: var(--success-green);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-stock::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-add-btn {
  padding: 14px 24px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.modal-add-btn:hover { background: var(--btn-hover); }

/* --- Cart Sidebar --- */
.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
}

.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--bg-white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 3001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-color);
}

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

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.qty-btn:hover { background: var(--bg-light); }

.cart-item-remove {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--sale-red); }

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 500;
}

.cart-total-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.cart-free-shipping {
  font-size: 12px;
  color: var(--success-green);
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* --- Checkout Form --- */
.checkout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.checkout-overlay.active { display: flex; }

.checkout-modal {
  background: var(--bg-white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-modal h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

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

.order-summary {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.order-summary h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 8px;
}

.place-order-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

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

/* --- Footer --- */
.footer {
  background: var(--bg-light2);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  display: block;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* --- Page Content (subpages) --- */
.page-content {
  padding: 40px 0 60px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-color);
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-color);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-color);
}

.page-content p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-content ul,
.page-content ol {
  margin: 12px 0 12px 24px;
  list-style: disc;
}

.page-content ol { list-style: decimal; }

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-text {
  max-width: 800px;
  margin: 0 auto;
}

/* Delivery/Payment cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--primary);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* About page highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.highlight-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.highlight-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.highlight-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 5000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Floating Telegram Button --- */
.floating-telegram {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0088cc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,136,204,0.4);
  z-index: 999;
  transition: all 0.3s;
}

.floating-telegram:hover { transform: scale(1.1); }

.floating-telegram svg { width: 28px; height: 28px; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .nav { display: none; }
  .burger { display: flex; }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 16px;
    gap: 4px;
    z-index: 100;
  }

  .nav.mobile-open .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-image { min-height: 250px; }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .cart-sidebar { width: 100%; right: -100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body { padding: 10px; }
  .product-card-name { font-size: 12px; }
  .price-current { font-size: 16px; }
  .price-old { font-size: 12px; }
  .add-to-cart-btn { font-size: 12px; padding: 8px; }
  .filters { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- No results --- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover { background: var(--accent); }
