/* =====================================================================
   Florado storefront — components added on top of app.css
   Uses the existing palette (--primary-green #42b883, DM Sans).
   ===================================================================== */

:root {
  --green-dark: #27925f;
  --green-tint: #d8f3e6;
}

.btn-shop,
.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-shop:hover,
.btn-checkout:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 184, 131, 0.25);
}
.btn-outline-shop {
  background: transparent;
  border: 1.5px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-outline-shop:hover {
  background: var(--primary-green);
  color: #fff;
}

/* Header socials + telephone in pre-header */
.pre-header .header-socials a {
  color: var(--text-color);
  font-size: 16px;
  transition: color 0.2s ease;
}
.pre-header .header-socials a:hover {
  color: var(--primary-green);
}

/* Search suggestions dropdown */
.search-wrapper {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 200;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}
.search-suggestions._open {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.2s ease;
}
.suggestion-item:hover {
  background: var(--green-tint);
}
.suggestion-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f7f9;
}
.suggestion-item .s-name {
  flex: 1;
  font-size: 15px;
  color: var(--color-dark-blue);
}
.suggestion-item .s-price {
  font-weight: 600;
  color: var(--primary-green);
  white-space: nowrap;
}
.suggestion-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-color);
}

/* Breadcrumb */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-color);
  padding: 20px 0 10px;
}
.breadcrumb-bar a {
  color: var(--text-color);
}
.breadcrumb-bar a:hover {
  color: var(--primary-green);
}
.breadcrumb-bar b {
  color: var(--color-dark-blue);
}

/* Catalog head */
.catalog-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.catalog-head {
  gap: 8px;
  margin-bottom: 24px;
}
.catalog-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--color-dark-blue);
}
.catalog-intro {
  color: var(--text-color);
  max-width: 720px;
}

/* Catalog layout */
.catalog-layout {
  align-items: flex-start;
}
.filter-col {
  flex: 0 0 280px;
  max-width: 280px;
  position: sticky;
  top: 90px;
}
.catalog-main {
  min-width: 0;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-grid .prod-card {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-grid .prod-card.single {
  max-width: none;
}

/* Filter sidebar extras */
.filter-hd {
  margin-bottom: 4px;
}
.btn-reset-filters {
  background: none;
  border: none;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.filter-option.is-disabled {
  opacity: 0.4;
}
.filter-count {
  color: var(--text-color);
  font-size: 13px;
}

/* Dual price slider */
.price-slider {
  position: relative;
  height: 34px;
}
.price-slider .slider-track {
  position: absolute;
  top: 15px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 4px;
}
.price-slider::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e1e4e6;
  border-radius: 4px;
}
.price-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-green);
  cursor: pointer;
}
.price-range-inputs input {
  width: 100%;
  text-align: center;
}

/* Active filter chips */
.active-filters {
  margin: 16px 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-tint);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
}
.filter-chip em {
  font-style: normal;
  opacity: 0.7;
}
.chip-remove {
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 2px;
}
.reset-all {
  background: none;
  border: none;
  color: #e53935;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* Empty state */
.empty-state {
  padding: 70px 20px;
  gap: 12px;
}
.empty-state i {
  font-size: 54px;
  color: var(--light-gray-2);
}
.empty-state h3 {
  font-size: 22px;
  color: var(--color-dark-blue);
}
.empty-state p {
  color: var(--text-color);
}

/* Mobile filter button + drawer */
.btn-mobile-filter {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1200;
}
.filter-drawer-overlay._active {
  opacity: 1;
  visibility: visible;
}
.filter-drawer-head {
  margin-bottom: 12px;
}

/* Pagination */
.catalog-pagination .pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.catalog-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e1e4e6;
  color: var(--color-dark-blue);
  text-decoration: none;
}
.catalog-pagination .active .page-link {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}
.app-toast {
  background: var(--color-dark-blue);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  min-width: 220px;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.app-toast.is-success {
  background: var(--primary-green);
}
.app-toast.is-error {
  background: #e53935;
}

.action-item.is-loading i::before {
  content: "\f130"; /* bi-hourglass */
}

/* =========================== PRODUCT PAGE =========================== */
.product-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.product-gallery .gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f7f9;
}
.product-gallery .gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery .gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f4f7f9;
}
.gallery-thumb.is-active {
  border-color: var(--primary-green);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .p-cat {
  color: var(--text-color);
  font-size: 14px;
}
.product-info h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 6px 0 14px;
}
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.product-price-box .cur {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-green);
}
.product-price-box .cur::after {
  content: " MDL";
  font-size: 16px;
  font-weight: 500;
}
.product-price-box .old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}
.product-stock {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 18px;
}
.product-stock.out {
  color: #e53935;
}

/* Variant selector */
.variant-selector {
  margin-bottom: 24px;
}
.variant-selector .v-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark-blue);
}
.variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.variant-option {
  border: 1.5px solid #e1e4e6;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark-blue);
  transition: all 0.2s ease;
  background: #fff;
}
.variant-option:hover {
  border-color: var(--primary-green);
}
.variant-option.is-active {
  border-color: var(--primary-green);
  background: var(--green-tint);
  color: var(--green-dark);
}
.variant-option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.qty-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #e1e4e6;
  border-radius: 10px;
  overflow: hidden;
}
.qty-box button {
  width: 42px;
  height: 46px;
  border: none;
  background: #f4f7f9;
  font-size: 18px;
  cursor: pointer;
}
.qty-box input {
  width: 54px;
  height: 46px;
  border: none;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.js-add-to-cart-main {
  flex: 1;
}

.attr-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.attr-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 15px;
}
.attr-table td:first-child {
  color: var(--text-color);
  width: 40%;
}
.attr-table td:last-child {
  font-weight: 600;
  color: var(--color-dark-blue);
}

.product-section-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 50px 0 24px;
}

/* =========================== CART PAGE =========================== */
.cart-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cart-item .ci-img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7f9;
}
.cart-item .ci-name {
  font-weight: 600;
  color: var(--color-dark-blue);
}
.cart-item .ci-variant {
  color: var(--text-color);
  font-size: 14px;
}
.cart-summary {
  background: #f4f7f9;
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-color);
}
.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-blue);
  border-top: 1px solid #e1e4e6;
  padding-top: 14px;
  margin-top: 14px;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty i {
  font-size: 60px;
  color: var(--light-gray-2);
}

/* =========================== CHECKOUT =========================== */
.checkout-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 34px;
  align-items: start;
}
.checkout-form .form-group {
  margin-bottom: 16px;
}
.checkout-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-dark-blue);
}
.checkout-form .form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e1e4e6;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.checkout-form .form-control:focus {
  border-color: var(--primary-green);
}

.checkout-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin: 6px 0 16px;
}
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-method {
  border: 1.5px solid #e1e4e6;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-method.is-active {
  border-color: var(--primary-green);
  background: var(--green-tint);
}

/* =========================== ACCOUNT =========================== */
.account-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}
.account-nav {
  background: #f4f7f9;
  border-radius: 16px;
  padding: 16px;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--color-dark-blue);
  font-weight: 500;
}
.account-nav a.is-active,
.account-nav a:hover {
  background: var(--primary-green);
  color: #fff;
}
.order-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.order-card .oc-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--green-tint);
  color: var(--green-dark);
}

/* =========================== HOMEPAGE =========================== */
.home-section {
  margin: 60px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-dark-blue);
}
.section-head .see-all {
  color: var(--primary-green);
  font-weight: 600;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f4f7f9;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: transform 0.25s ease;
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card .cc-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.home-hero .main-slider__slide .main-slider__text h2 {
  font-size: 54px;
}

/* Static / page-intro */
.static-page {
  margin-top: 90px;
  margin-bottom: 60px;
}
.static-page .page-hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 16px;
}
.static-page .content-block {
  color: var(--text-color);
  line-height: 1.8;
  max-width: 860px;
}
