/* =====================================================================
   Florado storefront — page-level components.

   Loaded after app.css and shop.css. Uses the existing design tokens
   (--primary-green, --color-dark-blue, --text-color, --green-tint) and
   never redefines them, so the palette stays the single source of truth.
   ===================================================================== */

/* --------------------------------------------------------------- HERO */
.hero {
  margin-top: 90px;
}
.hero-swiper {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--green-tint), #f4f7f9);
  position: relative;
}
.hero-slide {
  min-height: 380px;
  padding: 48px 56px;
  gap: 32px;
  color: inherit;
  text-decoration: none;
}
.hero-copy {
  flex: 1 1 46%;
  gap: 16px;
  z-index: 2;
}
.hero-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-dark-blue);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-color);
  max-width: 44ch;
}
.hero-cta {
  align-self: flex-start;
  margin-top: 6px;
}
.hero-media {
  flex: 1 1 44%;
  display: flex;
  justify-content: flex-end;
}
.hero-media img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 16px;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-dark-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.hero-prev {
  left: 16px;
}
.hero-next {
  right: 16px;
}
.hero-pagination {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-green);
}

/* ---------------------------------------------------------- USP STRIP */
.usp-strip {
  margin-top: 28px;
}
.usp-row {
  gap: 16px;
  background: #fff;
  border: 1px solid var(--light-gray-1);
  border-radius: 16px;
  padding: 22px 26px;
}
.usp-item {
  flex: 1 1 200px;
}
.usp-item i {
  font-size: 26px;
  color: var(--primary-green);
}
.usp-item b {
  color: var(--color-dark-blue);
  font-size: 15px;
}
.usp-item span {
  color: var(--text-color);
  font-size: 14px;
}

/* ------------------------------------------------- SECTION HEADS/RAILS */
.section-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-dark-blue);
}
.section-sub {
  color: var(--text-color);
  margin-top: 4px;
}
.section-more {
  color: var(--primary-green);
  font-weight: 600;
  white-space: nowrap;
}
.section-more:hover {
  color: var(--green-dark);
}
.rail-section.is-accent {
  background: var(--green-tint);
  border-radius: 20px;
  padding: 32px;
}

/* ------------------------------------------------------- CATALOG / QR */
.catalog-qr {
  margin-top: 70px;
  background: var(--color-dark-blue);
  padding: 56px 0;
}
.qr-panel {
  color: #fff;
}
.qr-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--primary-green);
  font-weight: 700;
}
.qr-copy {
  flex: 1 1 480px;
  gap: 14px;
}
.qr-copy h2 {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}
.qr-copy p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
}
.qr-actions {
  margin-top: 8px;
}
.catalog-qr .btn-outline-shop {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.catalog-qr .btn-outline-shop:hover {
  background: #fff;
  color: var(--color-dark-blue);
  border-color: #fff;
}
.qr-code {
  gap: 10px;
}
.qr-code img,
.qr-placeholder {
  width: 168px;
  height: 168px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}
.qr-placeholder {
  color: var(--color-dark-blue);
  font-size: 84px;
}
.qr-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------- PRODUCT PAGE */
.product-detail {
  align-items: flex-start;
  margin-bottom: 20px;
}
.product-gallery {
  flex: 1 1 420px;
  max-width: 520px;
  position: relative;
}
.product-gallery .gallery-main .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
}
.product-info {
  flex: 1 1 380px;
  gap: 6px;
}
.product-cat {
  color: var(--text-color);
  font-size: 14px;
}
.product-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 6px 0 8px;
}
.product-sku {
  font-size: 13px;
  color: var(--text-color);
}
.product-lead {
  color: var(--text-color);
  line-height: 1.7;
  margin: 12px 0;
}
.product-price-row {
  margin: 10px 0 6px;
}
.product-price-row .price-current {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-green);
}
.product-price-row .price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}
.variant-block {
  margin: 20px 0 6px;
}
.variant-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark-blue);
}
.product-buy {
  margin: 22px 0 20px;
}
.product-buy .btn-shop {
  flex: 1;
}
.product-usp {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--light-gray-1);
  color: var(--text-color);
  font-size: 15px;
}
.product-usp i {
  color: var(--primary-green);
  margin-right: 8px;
}

/* Description / specs tabs */
.product-tabs {
  margin-top: 50px;
}
.tab-heads {
  border-bottom: 1px solid var(--light-gray-2);
}
.tab-head {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
}
.tab-head.is-active {
  color: var(--color-dark-blue);
  border-bottom-color: var(--primary-green);
}
.tab-pane {
  display: none;
  padding: 24px 0;
}
.tab-pane.is-active {
  display: block;
}
.rich-text {
  color: var(--text-color);
  line-height: 1.8;
  max-width: 860px;
}
.rich-text h2,
.rich-text h3 {
  color: var(--color-dark-blue);
  margin: 22px 0 10px;
}
.rich-text ul {
  padding-left: 20px;
}
.rich-text li {
  margin-bottom: 8px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 720px;
}
.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--light-gray-1);
  font-size: 15px;
  text-align: left;
}
.spec-table th {
  color: var(--text-color);
  font-weight: 500;
  width: 40%;
}
.spec-table td {
  font-weight: 600;
  color: var(--color-dark-blue);
}
.related-block {
  margin-top: 56px;
}
.related-block .section-title {
  margin-bottom: 22px;
}

/* ------------------------------------------------------------ SEARCH */
.search-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.page-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 8px;
}
.search-meta {
  color: var(--text-color);
  margin-bottom: 18px;
}
.search-page-form {
  max-width: 520px;
  margin-bottom: 30px;
}
.search-page-form input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border: 1px solid var(--light-gray-2);
  border-radius: 10px;
  outline: none;
}
.search-page-form input:focus {
  border-color: var(--primary-green);
}
.search-page-form .bi-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
}

/* -------------------------------------------------------------- CART */
.cart-layout {
  align-items: flex-start;
}
.cart-lines {
  min-width: 0;
}
.cart-head,
.cart-item {
  gap: 16px;
  padding: 14px 0;
}
.cart-head {
  border-bottom: 1px solid var(--light-gray-2);
  color: var(--text-color);
  font-size: 14px;
}
.cart-head .c-prod,
.cart-item .c-prod {
  flex: 1 1 auto;
  min-width: 0;
}
.cart-head .c-price,
.cart-item .c-price,
.cart-head .c-total,
.cart-item .c-total {
  flex: 0 0 120px;
  text-align: right;
}
.cart-head .c-qty,
.cart-item .c-qty {
  flex: 0 0 140px;
}
.cart-head .c-rm,
.cart-item .c-rm {
  flex: 0 0 40px;
  text-align: right;
}
.cart-item .c-total {
  font-weight: 700;
  color: var(--color-dark-blue);
}
.ci-img {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7f9;
  display: block;
}
.ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-remove {
  background: none;
  border: none;
  color: #bbb;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ci-remove:hover {
  color: #e53935;
}
.continue-shopping {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-summary {
  flex: 0 0 340px;
}
.sum-row {
  margin-bottom: 12px;
  color: var(--text-color);
}
.sum-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-blue);
  border-top: 1px solid var(--light-gray-2);
  padding-top: 14px;
  margin-top: 14px;
}
.cart-summary .btn-checkout {
  margin-top: 10px;
}

/* ---------------------------------------------------------- CHECKOUT */
.checkout-layout {
  align-items: flex-start;
}
.checkout-main {
  min-width: 0;
}
.checkout-block {
  background: #fff;
  border: 1px solid var(--light-gray-1);
  border-radius: 16px;
  padding: 26px;
}
.checkout-block h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 18px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}
.form-field {
  margin-bottom: 12px;
}
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-dark-blue);
  font-size: 14px;
}
.form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--light-gray-2);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field input:focus {
  border-color: var(--primary-green);
}
.form-field input.has-error {
  border-color: #e53935;
}
.field-error {
  color: #e53935;
  font-size: 13px;
  margin-top: 4px;
}
.pay-note {
  color: var(--text-color);
  background: var(--green-tint);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
}
.pay-note i {
  color: var(--green-dark);
  margin-right: 8px;
}
.checkout-summary {
  flex: 0 0 360px;
  background: #f4f7f9;
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 90px;
}
.checkout-summary h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-dark-blue);
}
.co-lines {
  list-style: none;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--light-gray-2);
}
.co-qty {
  color: var(--text-color);
  font-size: 14px;
}
.co-name {
  flex: 1;
  font-size: 14px;
  color: var(--color-dark-blue);
}
.co-name small {
  color: var(--text-color);
}
.co-sum {
  font-weight: 600;
  white-space: nowrap;
}
.free-hint {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-color);
}
.free-hint i {
  color: var(--primary-green);
  margin-right: 6px;
}
.back-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--text-color);
  font-size: 14px;
}
.alert-box {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.alert-box.is-error {
  background: #fdecea;
  color: #b3261e;
}

/* Order success */
.order-success {
  margin-top: 90px;
  margin-bottom: 60px;
}
.success-card {
  gap: 12px;
  padding: 60px 20px;
  background: #f4f7f9;
  border-radius: 20px;
}
.success-card i {
  font-size: 64px;
  color: var(--primary-green);
}
.success-card h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-blue);
}
.success-card p {
  color: var(--text-color);
  max-width: 52ch;
}
.order-code b,
.order-total b {
  color: var(--color-dark-blue);
}
.success-actions {
  margin-top: 14px;
}

/* ----------------------------------------------------------- ACCOUNT */
.account-layout {
  align-items: flex-start;
}
.account-nav {
  flex: 0 0 250px;
  gap: 4px;
}
.account-main {
  min-width: 0;
}
.acc-link {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--color-dark-blue);
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.acc-link.is-active,
.acc-link:hover {
  background: var(--primary-green);
  color: #fff;
}
.acc-logout-form {
  margin-top: 6px;
}
.acc-logout {
  color: #e53935;
}
.acc-logout:hover {
  background: #e53935;
  color: #fff;
}
.account-card {
  background: #fff;
  border: 1px solid var(--light-gray-1);
  border-radius: 16px;
  padding: 26px;
}
.account-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 14px;
}
.acc-muted {
  color: var(--text-color);
  font-size: 14px;
}
.acc-stats {
  margin-top: 18px;
}
.acc-stat {
  background: #f4f7f9;
  border-radius: 12px;
  padding: 16px 22px;
  min-width: 150px;
}
.acc-stat b {
  font-size: 24px;
  color: var(--color-dark-blue);
}
.acc-stat span {
  font-size: 13px;
  color: var(--text-color);
}
.order-table {
  margin-top: 6px;
}
.order-head,
.order-row {
  gap: 12px;
  padding: 14px 4px;
}
.order-head {
  border-bottom: 1px solid var(--light-gray-2);
  color: var(--text-color);
  font-size: 13px;
}
.order-row {
  border-bottom: 1px solid var(--light-gray-1);
  color: var(--color-dark-blue);
}
.order-row:hover {
  background: #fafbfc;
}
.order-head .o-code,
.order-row .o-code {
  flex: 1 1 120px;
  font-weight: 600;
}
.order-head .o-date,
.order-row .o-date {
  flex: 0 0 110px;
}
.order-head .o-qty,
.order-row .o-qty {
  flex: 0 0 80px;
}
.order-head .o-sum,
.order-row .o-sum {
  flex: 0 0 120px;
  font-weight: 600;
}
.order-head .o-status,
.order-row .o-status {
  flex: 0 0 150px;
}
.order-head .o-go,
.order-row .o-go {
  flex: 0 0 24px;
  text-align: right;
  color: var(--text-color);
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--light-gray-1);
  color: var(--text-color);
}
.status-badge.is-ok {
  background: var(--green-tint);
  color: var(--green-dark);
}
.status-badge.is-bad {
  background: #fdecea;
  color: #b3261e;
}
.status-badge.is-wait {
  background: #fff4e0;
  color: #a86400;
}
.status-badge.is-info {
  background: #e6f2fb;
  color: #17608f;
}
.order-meta b {
  color: var(--color-dark-blue);
  font-size: 16px;
}
.order-items {
  border-top: 1px solid var(--light-gray-1);
}
.oi-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray-1);
}
.oi-name {
  flex: 1;
  color: var(--color-dark-blue);
}
.oi-qty,
.oi-price {
  color: var(--text-color);
  font-size: 14px;
}
.order-totals {
  margin-top: 18px;
  max-width: 320px;
  margin-left: auto;
}
.data-list {
  margin: 0 0 18px;
}
.dl-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray-1);
}
.dl-row dt {
  color: var(--text-color);
  font-weight: 500;
}
.dl-row dd {
  margin: 0;
  color: var(--color-dark-blue);
  font-weight: 600;
}
.delivery-address {
  color: var(--text-color);
  line-height: 1.9;
  margin: 0;
  font-style: normal;
}
.empty-state.small {
  padding: 40px 20px;
}
.empty-state.small i {
  font-size: 40px;
}

/* ------------------------------------------------------ STATIC PAGES */
.static-page .static-body {
  margin-top: 10px;
}
.static-page .lead {
  font-size: 18px;
  color: var(--color-dark-blue);
  line-height: 1.7;
}
/* Data ultimei actualizări, pe paginile juridice (termeni, confidențialitate). */
.static-page .static-updated {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.75;
}
.info-cards {
  margin: 26px 0 36px;
}
.info-card {
  flex: 1 1 260px;
  background: #f4f7f9;
  border-radius: 16px;
  padding: 26px;
  gap: 8px;
}
.info-card i {
  font-size: 30px;
  color: var(--primary-green);
}
.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark-blue);
}
.info-card p {
  color: var(--text-color);
  margin: 0;
}
.static-cta {
  margin: 50px 0 10px;
  gap: 10px;
  background: var(--green-tint);
  border-radius: 20px;
  padding: 40px 20px;
}
.static-cta h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark-blue);
}
.static-cta p {
  color: var(--text-color);
}
.contact-layout {
  margin-top: 20px;
}
.contact-cards {
  flex: 1 1 320px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--light-gray-1);
  border-radius: 14px;
  padding: 20px;
}
.contact-card i {
  font-size: 20px;
  color: var(--primary-green);
}
.cc-label {
  font-size: 13px;
  color: var(--text-color);
}
.cc-value {
  font-weight: 600;
  color: var(--color-dark-blue);
}
.cc-socials a {
  font-size: 20px;
  color: var(--primary-green);
}
.contact-note {
  flex: 1 1 380px;
  background: #f4f7f9;
  border-radius: 16px;
  padding: 30px;
}
.contact-note h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 12px;
}
.contact-note p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ======================================================================
   RESPONSIVE — mobile-first adjustments for the pages above.
   ====================================================================== */

@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .hero-slide {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
    min-height: 0;
  }
  .hero-copy {
    align-items: center;
  }
  .hero-cta {
    align-self: center;
  }
  .hero-media {
    justify-content: center;
  }
  .hero-title {
    font-size: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Catalog filters become an off-canvas drawer (toggled by shop.js). */
  .btn-mobile-filter {
    display: inline-flex;
  }
  .filter-col {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 340px;
    background: #fff;
    z-index: 1300;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-width: 340px;
    flex: none;
  }
  .filter-col._open {
    transform: translateX(0);
  }

  .cart-summary,
  .checkout-summary,
  .account-nav {
    flex: 1 1 100%;
    position: static;
  }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .acc-link {
    width: auto;
  }
  .acc-logout-form {
    margin-top: 0;
  }

  .product-gallery,
  .product-info {
    flex: 1 1 100%;
    max-width: none;
  }

  .qr-panel {
    justify-content: center;
    text-align: center;
  }
  .qr-copy {
    align-items: center;
  }
  .qr-actions {
    justify-content: center;
  }

  .rail-section.is-accent {
    padding: 24px 18px;
  }
}

@media (max-width: 767px) {
  .hero,
  .catalog-page,
  .product-page,
  .cart-page,
  .checkout-page,
  .account-page,
  .search-page,
  .static-page,
  .order-success {
    margin-top: 70px;
  }

  .page-title,
  .catalog-title {
    font-size: 26px;
  }
  .section-title {
    font-size: 23px;
  }
  .product-title {
    font-size: 24px;
  }
  .qr-copy h2 {
    font-size: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  /* Cart rows stack: image + text on one line, the rest underneath. */
  .cart-item {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .cart-item .c-prod {
    flex: 1 1 100%;
  }
  .cart-item .c-price,
  .cart-item .c-total {
    flex: 0 0 auto;
    text-align: left;
  }
  .cart-item .c-qty {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .cart-item .c-rm {
    flex: 0 0 auto;
  }

  /* Order history rows drop the less important columns. */
  .order-head {
    display: none;
  }
  .order-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .order-row .o-code {
    flex: 1 1 auto;
  }
  .order-row .o-qty {
    display: none;
  }

  .usp-row {
    padding: 18px;
  }
  .usp-item {
    flex: 1 1 100%;
  }

  .product-usp {
    font-size: 14px;
  }
  .oi-row {
    flex-wrap: wrap;
  }
  .oi-name {
    flex: 1 1 100%;
  }
}

@media (max-width: 575px) {
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-slide {
    padding: 28px 18px;
  }
  .product-buy {
    flex-wrap: wrap;
  }
  .product-buy .btn-shop {
    flex: 1 1 100%;
  }
  .checkout-block,
  .account-card,
  .checkout-summary,
  .cart-summary {
    padding: 18px;
  }
  .qr-code img,
  .qr-placeholder {
    width: 140px;
    height: 140px;
  }
  .success-card {
    padding: 40px 16px;
  }
}
