/* ==========================================================================
   Main – California Muscles Premium Style (updated February 2026)
   Только золотой акцент — зелёный полностью удалён
   ========================================================================== */

:root {
  --gold: #b9975e;
  --gold-dark: #8b6f3f;
  --gold-darker: #6b5430;
  --gold-light: #f5e8c7;
  --dark: #0f1117;
  --gray: #6c757d;
  --gray-dark: #495057;
  --light: #f8f9fa;
  --bg-soft: #fdfdfe;
  --border: #e2e8f0;
  --text: #111827;
  --text-muted: #4b5563;
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 32px rgba(185,151,94,0.18);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 12px;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  font-weight: 400;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
  max-width: 1400px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #111827;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  transition: all 0.28s ease;
}

.btn-gold:hover,
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(185,151,94,0.3);
}

.btn-outline-primary,
.btn-outline-gold {
  color: var(--gold);
  border-color: var(--gold);
  border-radius: 50px;
}

.btn-outline-primary:hover,
.btn-outline-gold:hover {
  background: var(--gold);
  color: #111827;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s ease;
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.product-img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  background: var(--light);
  padding: 20px;
  transition: transform 0.4s ease;
}

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

.price {
  color: #c53030;
  font-weight: 800;
  font-size: 1.5rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 1.1rem;
  margin-left: 8px;
}

.stars {
  color: var(--gold);
  font-size: 1rem;
}

.sale-badge {
  background: #c53030;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,17,23,0.65), rgba(15,17,23,0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1,
.hero h2,
.hero h3,
.hero .display-4,
.hero .display-5 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 4px 16px rgba(0,0,0,0.7);
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: rgba(255,255,255,0.95) !important;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background: var(--gold);
  border-radius: 3px;
}

/* ==========================================================================
   Premium card & collapse (Read more blocks)
   ========================================================================== */
.card-premium {
  background: white;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(185,151,94,0.22);
}

.collapse-toggle {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.15rem;
}

.collapse-toggle:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   Lists with check icons (benefits, categories)
   ========================================================================== */
.list-check li {
  margin-bottom: 1.3rem;
  font-size: 1.1rem;
}

.list-check i {
  color: var(--gold);
  margin-right: 12px;
  font-size: 1.3rem;
}

/* ==========================================================================
   Dark premium section (final CTA)
   ========================================================================== */
.bg-dark-premium {
  background: var(--dark);
  color: white;
}

/* ==========================================================================
   PRODUCT CATALOG
   ========================================================================== */
.filter-card {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background: white;
}

.filter-title {
  background: var(--gold-light);
  padding: 12px 18px;
  margin: 0;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-content {
  padding: 15px 18px;
}

.form-check-label {
  font-size: 0.95rem;
  cursor: pointer;
}

.offcanvas-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-link-item {
  padding: 6px 0;
  font-size: 0.95rem;
}

.filter-link-item.parent {
  font-weight: 600;
  margin-bottom: 4px;
}

.filter-link-item.child {
  font-weight: normal;
  color: #555;
}

.filter-link-item a {
  color: inherit;
  display: block;
  transition: color 0.2s;
}

.filter-link-item a:hover,
.filter-link-item a.active {
  color: var(--gold);
  text-decoration: underline;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-gallery .main-image {
  height: 450px;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-gallery .main-image img#mainProductImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery .thumbs .col-3 {
  height: 100px;
  padding: 0;
}

.product-gallery .thumbs img.thumb {
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 5px;
  box-sizing: border-box;
}

.product-gallery .thumb {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
}

.product-gallery .thumb.active,
.product-gallery .thumb:hover {
  opacity: 1;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(185,151,94,0.3);
}

/* ==========================================================================
   Pagination LinkPager
   ========================================================================== */
.pagination {
  --pg-color: #6c757d;
  --pg-bg: #ffffff;
  --pg-hover-bg: #f1f5f9;
  --pg-active-bg: var(--gold);
  --pg-active-color: #111827;
  --pg-border: #dee2e6;
  --pg-radius: 10px;
  --pg-gap: 6px;
  margin: 2.5rem 0 1.5rem !important;
  flex-wrap: wrap;
  gap: var(--pg-gap);
  justify-content: center;
}

.page-item {
  margin: 0 !important;
}

.page-link,
.page-item.disabled .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: var(--pg-color);
  background-color: var(--pg-bg);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  transition: all 0.18s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.page-link:hover {
  background-color: var(--pg-hover-bg);
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185,151,94,0.18);
}

.page-item.active .page-link {
  background-color: var(--pg-active-bg);
  border-color: var(--pg-active-bg);
  color: var(--pg-active-color);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(185,151,94,0.3);
  transform: translateY(-1px);
}

.page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

.page-item.prev .page-link,
.page-item.next .page-link {
  min-width: 46px;
  font-size: 1.1rem;
  padding: 0 10px;
}

@media (max-width: 576px) {
  .pagination {
    --pg-gap: 4px;
    margin: 1.5rem 0 1rem !important;
  }
  .page-link,
  .page-item.disabled .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.9rem;
    padding: 0 8px;
  }
  .page-item.prev .page-link,
  .page-item.next .page-link {
    min-width: 40px;
  }
  .page-item:not(.prev):not(.next):not(.active):not(:nth-child(-n+3)):not(:nth-last-child(-n+3)) {
    display: none;
  }
  .pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 0.9rem;
    color: var(--pg-color);
    pointer-events: none;
  }
}

/* ==========================================================================
   GENERAL (оставшиеся общие стили)
   ========================================================================== */
.benefit-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.benefit-card i {
  color: var(--gold);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Cart & Checkout */
.cart-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.qty-input {
  max-width: 180px;
}

.cart-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}

.cart-empty-message {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #777;
  font-size: 1.3rem;
}

.promo-input-group .btn {
  background: var(--gold);
  color: #111827;
  border-color: var(--gold);
}

.promo-input-group .btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

@media (max-width: 576px) {
  .qty-input {
    width: 120px !important;
  }
  .qty-input input[type="number"] {
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
  }
  .qty-input .btn {
    width: 35px;
  }
}

.checkout-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}

.form-section {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.billing-section {
  display: none;
}

.billing-section.show {
  display: block;
}

.order-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 4px;
}

.order-item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.order-item:last-child {
  border-bottom: none;
}

/* Toasts */
.toast {
  min-width: 280px;
  max-width: 400px;
  z-index: 1055;
  border-radius: 8px;
}

.toast.bg-success {
  background-color: var(--gold) !important;
  color: #111827 !important;
}

.toast.bg-danger {
  background-color: #c53030 !important;
}

/* Error Page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  margin: 0;
}

.error-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 1rem 0 1.5rem;
}

.error-message {
  font-size: 1.25rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.error-icon {
  font-size: 6rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .error-code {
    font-size: 6rem;
  }
  .error-title {
    font-size: 2rem;
  }
}

/* About / FAQ / Profile / Order Confirmation / etc. */
.about-hero {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
              url('https://images.pexels.com/photos/4167542/pexels-photo-4167542.jpeg?auto=compress&cs=tinwsrgb&w=1260&h=750&dpr=1');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.about-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.mission-card,
.value-card {
  transition: all 0.25s ease;
}

.mission-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(185,151,94,0.22);
}

.value-icon {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.faq-header {
  background: var(--gold-light);
  padding: 60px 0 40px;
  text-align: center;
}

.faq-item .accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  background: white;
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.faq-item .accordion-body {
  padding: 1.5rem;
  background: #f9f9f9;
}

.faq-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

@media (max-width: 576px) {
  .faq-header {
    padding: 40px 0 30px;
  }
  .faq-header h1 {
    font-size: 2.2rem;
  }
}

.profile-sidebar {
  background: white;
  border-right: 1px solid #eee;
  min-height: 500px;
}

.profile-sidebar .nav-link {
  color: #555;
  padding: 1rem 1.5rem;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.profile-sidebar .nav-link:hover,
.profile-sidebar .nav-link.active {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-left-color: var(--gold);
}

.profile-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.75rem;
}

.order-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.order-item:last-child {
  border-bottom: none;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold-light);
}

@media (max-width: 991px) {
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}

.form-section {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
}

.avatar-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold-light);
}

.avatar-upload {
  position: relative;
  display: inline-block;
}

.avatar-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.avatar-upload .upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--gold);
  color: #111827;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}

.order-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.order-header {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.order-body {
  padding: 1.5rem;
}

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px;
}

.status-badge {
  font-size: 0.9rem;
  padding: 0.5em 1em;
}

.notification-item {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 0;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
}

.notification-time {
  font-size: 0.85rem;
  color: #777;
}

.notification-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.order-confirmation {
  background: #f8f9fa;
}

.order-confirmation .display-4 {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #222;
}

.order-confirmation .card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.order-confirmation .card-header {
  font-weight: 600;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #eee;
}

.order-confirmation .table thead th {
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  background: #f8f9fa;
}

.order-confirmation .table td {
  padding: 1.1rem 0.75rem;
  vertical-align: middle;
}

.order-confirmation .badge {
  font-size: 0.95rem;
  padding: 0.55em 1.1em;
  font-weight: 500;
}

.order-confirmation .alert {
  border-radius: 10px;
  border: none;
}

.order-confirmation .success-icon {
  font-size: 5.5rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(185,151,94,0.3));
}

@media (max-width: 768px) {
  .order-confirmation .display-4 {
    font-size: 2.4rem;
  }
  .order-confirmation .card-header {
    padding: 1rem 1.25rem;
  }
}

.order-summary-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #111827 !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 576px) {
  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .product-img {
    max-height: 220px;
  }
}

@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
}