@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --ellc-bg: #f4f7fb;
  --ellc-bg-soft: #eef3f8;
  --ellc-surface: #ffffff;
  --ellc-surface-soft: #f8fbff;
  --ellc-border: #d9e2ee;
  --ellc-border-strong: #c5d1e0;
  --ellc-text: #182433;
  --ellc-muted: #6c7a8d;
  --ellc-primary: #295caa;
  --ellc-primary-soft: #eaf1ff;
  --ellc-teal: #146b63;
  --ellc-teal-soft: #e8f4f2;
  --ellc-gold: #d7a241;
  --ellc-gold-soft: #fff4da;
  --ellc-danger: #dc4d57;
  --ellc-danger-soft: #fff0f1;
  --ellc-shadow: 0 18px 36px rgba(20, 34, 51, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
}

body.ellc-storefront-body {
  background: linear-gradient(180deg, var(--ellc-bg) 0%, var(--ellc-bg-soft) 100%);
  color: var(--ellc-text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

body.ellc-storefront-body *,
body.ellc-storefront-body *::before,
body.ellc-storefront-body *::after {
  box-sizing: border-box;
}

body.ellc-storefront-body a {
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.ellc-storefront-body img {
  display: block;
  max-width: 100%;
}

body.ellc-storefront-body .container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.ellc-store-main {
  min-height: calc(100vh - 240px);
}

.ellc-store-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(20px);
  background: rgba(244, 247, 251, 0.92);
  border-bottom: 1px solid rgba(201, 213, 228, 0.9);
}

.ellc-store-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.ellc-store-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 86px;
  height: 86px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--ellc-border);
  box-shadow: 0 16px 30px rgba(20, 34, 51, 0.12);
  color: var(--ellc-text);
  text-decoration: none;
  flex: 0 0 auto;
}

.ellc-store-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.ellc-store-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ellc-store-brand__copy strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.ellc-store-brand__copy small {
  font-size: 13px;
  color: var(--ellc-muted);
}

.ellc-store-header__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1 1 auto;
}

.ellc-store-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ellc-store-nav a,
.ellc-store-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  color: var(--ellc-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ellc-store-nav a:hover,
.ellc-store-action-link:hover {
  background: var(--ellc-surface);
  color: var(--ellc-primary);
}

.ellc-store-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ellc-store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--ellc-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(41, 92, 170, 0.2);
  white-space: nowrap;
}

.ellc-store-cta:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.ellc-store-cta--dark {
  background: var(--ellc-teal);
  box-shadow: 0 16px 28px rgba(20, 107, 99, 0.18);
}

.ellc-store-nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--ellc-border);
  background: var(--ellc-surface);
  padding: 0;
}

.ellc-store-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ellc-text);
  border-radius: 999px;
}

.ellc-store-notice {
  padding: 14px 0 0;
}

.ellc-store-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--ellc-surface);
  border: 1px solid var(--ellc-border);
  border-radius: 24px;
  box-shadow: var(--ellc-shadow);
}

.ellc-store-notice__inner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.ellc-store-notice__inner span {
  color: var(--ellc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ellc-store-notice__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  background: transparent;
}

.breadcrumb li,
.breadcrumb a {
  color: var(--ellc-muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--ellc-primary);
  text-decoration: none;
}

.alert {
  border-radius: 18px;
  border: 1px solid var(--ellc-border);
  box-shadow: var(--ellc-shadow);
}

.alert-danger {
  background: var(--ellc-danger-soft);
  color: #a9313a;
  border-color: #f1c9cc;
}

.alert-success {
  background: #effaf4;
  color: #20704f;
  border-color: #cde8d8;
}

.alert-info {
  background: var(--ellc-primary-soft);
  color: var(--ellc-primary);
  border-color: #d4e2ff;
}

.ellc-page-shell {
  padding: 32px 0 72px;
}

.ellc-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ellc-page-head__copy h1,
.ellc-page-head__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ellc-page-head__copy p {
  margin: 0;
  max-width: 760px;
  color: var(--ellc-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ellc-store-kicker,
.ellc-page-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ellc-primary-soft);
  border: 1px solid rgba(41, 92, 170, 0.18);
  color: var(--ellc-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ellc-page-grid {
  display: grid;
  gap: 24px;
}

.ellc-surface-card,
.well,
.panel,
.purchase-card {
  background: var(--ellc-surface);
  border: 1px solid var(--ellc-border);
  border-radius: 28px;
  box-shadow: var(--ellc-shadow);
}

.well,
.panel,
.purchase-card {
  padding: 24px;
}

.ellc-auth-page .row,
.ellc-contact-page .row,
.ellc-register-page .row {
  margin-left: 0;
  margin-right: 0;
}

.ellc-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ellc-auth-card {
  padding: 30px;
}

.ellc-auth-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
}

.ellc-auth-card p {
  margin: 0 0 20px;
  color: var(--ellc-muted);
  line-height: 1.7;
}

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

.ellc-auth-card .form-control,
.ellc-register-form .form-control,
.ellc-contact-form .form-control,
.purchase-card .form-control,
.purchase-card select,
.ellc-cart-item__qty input {
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--ellc-border-strong);
  box-shadow: none;
  color: var(--ellc-text);
}

.ellc-auth-card textarea.form-control,
.ellc-register-form textarea.form-control,
.ellc-contact-form textarea.form-control {
  min-height: 140px;
  height: auto;
  resize: vertical;
  padding-top: 14px;
}

.btn,
.btn-default,
.btn-primary,
.btn-danger,
.btn-info {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  box-shadow: none;
}

.btn-primary {
  background: var(--ellc-primary);
  border-color: var(--ellc-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #214f93;
  border-color: #214f93;
}

.btn-default {
  background: var(--ellc-surface);
  border-color: var(--ellc-border-strong);
  color: var(--ellc-text);
}

.btn-danger {
  background: var(--ellc-danger);
  border-color: var(--ellc-danger);
}

.ellc-register-layout,
.ellc-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
}

.ellc-register-aside,
.ellc-contact-aside {
  padding: 30px;
  background: linear-gradient(180deg, var(--ellc-teal) 0%, #215f83 100%);
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--ellc-shadow);
}

.ellc-register-aside h2,
.ellc-contact-aside h2 {
  margin: 12px 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
}

.ellc-register-aside p,
.ellc-contact-aside p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.ellc-register-highlights,
.ellc-contact-highlights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ellc-register-highlights li,
.ellc-contact-highlights li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.ellc-register-highlights li::before,
.ellc-contact-highlights li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ellc-gold);
  flex: 0 0 auto;
}

.ellc-register-form-shell,
.ellc-contact-form-shell {
  padding: 28px;
  background: var(--ellc-surface);
  border: 1px solid var(--ellc-border);
  border-radius: 28px;
  box-shadow: var(--ellc-shadow);
}

.ellc-register-form fieldset {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--ellc-border);
  border-radius: 22px;
  background: var(--ellc-surface-soft);
}

.ellc-register-form legend,
.ellc-contact-form legend {
  width: auto;
  margin: 0 0 12px;
  padding: 0 4px;
  border: 0;
  color: var(--ellc-text);
  font-size: 18px;
  font-weight: 800;
}

.ellc-register-form .form-group,
.ellc-contact-form .form-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-left: 0;
  margin-right: 0;
  padding: 10px 0;
}

.ellc-register-form .control-label,
.ellc-contact-form .control-label {
  padding-top: 14px;
  color: var(--ellc-text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.ellc-register-form .col-sm-2,
.ellc-register-form .col-sm-10,
.ellc-contact-form .col-sm-2,
.ellc-contact-form .col-sm-10 {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.ellc-register-form .buttons,
.ellc-contact-form .buttons {
  margin-top: 16px;
}

.ellc-contact-overview {
  display: grid;
  gap: 16px;
}

.ellc-contact-info-card {
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
}

.ellc-contact-info-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.ellc-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.ellc-cart-list,
.ellc-cart-summary,
.ellc-cart-modules {
  padding: 28px;
  background: var(--ellc-surface);
  border: 1px solid var(--ellc-border);
  border-radius: 28px;
  box-shadow: var(--ellc-shadow);
}

.ellc-cart-items {
  display: grid;
  gap: 18px;
}

.ellc-cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 190px 130px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--ellc-surface-soft);
  border: 1px solid var(--ellc-border);
  border-radius: 24px;
}

.ellc-cart-item__thumb img {
  width: 100%;
  border-radius: 18px;
}

.ellc-cart-item__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.ellc-cart-item__meta,
.ellc-cart-item__options {
  margin: 0;
  color: var(--ellc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ellc-cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.ellc-cart-item__qty button {
  width: 42px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--ellc-border);
  background: var(--ellc-surface);
  color: var(--ellc-text);
}

.ellc-cart-item__qty input {
  width: 64px;
  text-align: center;
}

.ellc-cart-item__pricing strong {
  display: block;
  text-align: right;
  font-size: 20px;
  font-weight: 800;
}

.ellc-cart-item__pricing span {
  display: block;
  margin-top: 5px;
  text-align: right;
  color: var(--ellc-muted);
  font-size: 13px;
}

.ellc-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: var(--ellc-danger);
  font-weight: 700;
}

.ellc-cart-summary__table {
  width: 100%;
}

.ellc-cart-summary__table tr + tr td {
  border-top: 1px solid var(--ellc-border);
}

.ellc-cart-summary__table td {
  padding: 14px 0;
  font-size: 14px;
}

.ellc-cart-summary__actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ellc-product-shell {
  padding-top: 32px;
  padding-bottom: 72px;
}

.ellc-product-shell .purchase-card {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ellc-product-shell .thumbnail-,
.ellc-product-shell .purchase-card {
  min-height: 100%;
}

.ellc-product-shell .updated-price {
  color: var(--ellc-primary);
}

.ellc-product-shell #button-cart {
  min-height: 56px;
  border-radius: 18px;
  background: var(--ellc-danger);
  border-color: var(--ellc-danger);
  box-shadow: 0 16px 28px rgba(220, 77, 87, 0.18);
}

.ellc-product-shell .list-group-item {
  background: var(--ellc-surface-soft);
  border-radius: 16px;
}

.ellc-store-footer {
  margin-top: 36px;
  padding: 0 0 28px;
}

.ellc-store-footer__shell {
  display: grid;
  gap: 22px;
}

.ellc-store-footer__hero,
.ellc-store-footer__grid,
.ellc-store-footer__bottom {
  background: var(--ellc-surface);
  border: 1px solid var(--ellc-border);
  border-radius: 28px;
  box-shadow: var(--ellc-shadow);
}

.ellc-store-footer__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.ellc-store-footer__hero h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 800;
}

.ellc-store-footer__hero p {
  margin: 0;
  max-width: 760px;
  color: var(--ellc-muted);
  line-height: 1.7;
}

.ellc-store-footer__hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ellc-store-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px;
}

.ellc-store-brand--footer img {
  width: 48px;
  height: 48px;
}

.ellc-store-footer__brand p {
  margin: 18px 0;
  color: var(--ellc-muted);
  line-height: 1.7;
}

.ellc-store-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.ellc-store-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ellc-surface-soft);
  border: 1px solid var(--ellc-border);
  color: var(--ellc-text);
  text-decoration: none;
}

.ellc-store-footer__payments {
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--ellc-border);
  background: var(--ellc-surface-soft);
}

.ellc-store-footer__links h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.ellc-store-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ellc-store-footer__two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ellc-store-footer__links a {
  color: var(--ellc-muted);
  text-decoration: none;
}

.ellc-store-footer__links a:hover {
  color: var(--ellc-primary);
}

.ellc-store-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
}

.ellc-store-footer__bottom p {
  margin: 0;
  color: var(--ellc-muted);
  font-size: 14px;
}

.ellc-store-footer__bottom ul {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.ellc-store-footer__bottom a {
  color: var(--ellc-muted);
}

.ellc-home__button[data-ellc-track] {
  position: relative;
}

@media (max-width: 1320px) {
  .ellc-store-brand {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 20px;
  }

  .ellc-store-header__inner {
    gap: 14px;
  }

  .ellc-store-header__panel {
    gap: 12px;
  }

  .ellc-store-nav {
    gap: 4px;
  }

  .ellc-store-nav a,
  .ellc-store-action-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ellc-store-actions {
    gap: 8px;
  }

  .ellc-store-cta {
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
  }

  .ellc-store-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ellc-cart-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .ellc-cart-item__qty,
  .ellc-cart-item__pricing {
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .ellc-store-header__inner {
    flex-wrap: wrap;
  }

  .ellc-store-nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .ellc-store-header__panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
  }

  .ellc-nav-open .ellc-store-header__panel {
    display: flex;
  }

  .ellc-store-nav,
  .ellc-store-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ellc-store-nav a,
  .ellc-store-action-link,
  .ellc-store-cta {
    width: 100%;
  }

  .ellc-store-notice__inner,
  .ellc-store-footer__hero,
  .ellc-page-head,
  .ellc-register-layout,
  .ellc-contact-layout,
  .ellc-cart-layout,
  .ellc-auth-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ellc-store-footer__grid {
    grid-template-columns: 1fr;
  }

  .ellc-register-form .form-group,
  .ellc-contact-form .form-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ellc-register-form .control-label,
  .ellc-contact-form .control-label {
    padding-top: 0;
  }

  .ellc-store-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body.ellc-storefront-body .container {
    width: calc(100% - 20px);
  }

  .ellc-page-shell {
    padding: 24px 0 54px;
  }

  .ellc-auth-card,
  .ellc-register-aside,
  .ellc-register-form-shell,
  .ellc-contact-aside,
  .ellc-contact-form-shell,
  .ellc-cart-list,
  .ellc-cart-summary {
    padding: 22px;
  }

  .ellc-cart-item {
    grid-template-columns: 1fr;
  }

  .ellc-cart-item__thumb {
    max-width: 160px;
  }

  .ellc-store-footer__hero,
  .ellc-store-footer__grid,
  .ellc-store-footer__bottom {
    border-radius: 22px;
  }
}
