:root {
  --primary: #007185;
  --primary-soft: #e6f4f7;
  --secondary: #b12704;
  --secondary-soft: #fef3c7;
  --accent: #ff9900;
  --accent-soft: #fff4df;
  --success: #10b981;
  --success-soft: #d1fae5;
  --bg: #eaeded;
  --text: #111827;
  --muted: #6b7280;
  --radius-xl: 8px;
  --radius-md: 6px;
  --shadow-soft: 0 1px 3px rgba(15,23,42,0.12);
  --max-width: 1200px;
  --bottom-nav-height: 62px;
  --bottom-nav-offset: 0px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset));
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout helpers */
.container-max {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* No scroll-based motion */
.fade-in-up {
  opacity: 1;
  transform: none;
  transition: none;
}

/* MARKETPLACE HEADER */
.market-header {
  z-index: 1040;
}
.market-topbar {
  background: #131921;
  color: #ffffff;
}
.market-header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
}
.market-menu,
.market-location,
.market-account,
.market-cart,
.market-category-all,
.market-category-location {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  min-height: 42px;
}
.market-menu {
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.market-brand {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 5px 7px;
  border: 1px solid transparent;
}
.market-brand:hover,
.market-location:hover,
.market-account:hover,
.market-cart:hover,
.market-menu:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}
.market-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  text-align: left;
}
.market-location i {
  font-size: 1.1rem;
  margin-top: 11px;
}
.market-location span,
.market-account {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.market-location small,
.market-account small {
  color: #d5d5d5;
  font-size: 0.7rem;
}
.market-location strong,
.market-account strong {
  color: #ffffff;
  font-size: 0.82rem;
}
.market-search {
  display: flex;
  min-width: 0;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.15s;
}
.market-search:focus-within {
  box-shadow: 0 0 0 3px #ff9900;
}
.market-search select {
  width: 128px;
  flex-shrink: 0;
  border: 0;
  border-right: 1px solid #c8c8c8;
  border-radius: 6px 0 0 6px;
  background: #f3f3f3;
  color: #111827;
  font-size: 0.78rem;
  padding: 0 10px;
  cursor: pointer;
}
.market-search select:focus {
  outline: none;
}
.market-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font-size: 0.95rem;
  background: #ffffff;
}
.market-search input:focus {
  outline: none;
}
.market-search button {
  width: 52px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: #febd69;
  color: #111827;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.market-search button:hover {
  background: #f3a847;
}
.market-account {
  align-items: flex-start;
  justify-content: center;
  padding: 4px 8px;
}
.market-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px 6px 10px;
  background: #232f3e;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 6px;
  min-width: 0;
}
.market-cart:hover {
  background: #37475a;
  border-color: rgba(255,255,255,0.75) !important;
}
.market-cart strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.market-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.55rem;
  line-height: 1;
}
.market-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ff9900;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}
.market-mobile-search {
  background: #131921;
  padding: 0 10px 9px;
}
.market-categorybar {
  background: #232f3e;
  color: #ffffff;
  font-size: 0.86rem;
}
.market-category-inner {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  padding: 0 14px;
}
.market-category-inner a,
.market-category-location {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 5px 9px;
  color: #ffffff;
  border: 1px solid transparent;
}
.market-category-inner a:hover,
.market-category-location:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}
.market-category-all {
  font-weight: 700;
}
@media (max-width: 991.98px) {
  .market-header-inner {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  }
  .market-brand {
    font-size: 1.35rem;
  }
}
@media (max-width: 767.98px) {
  .market-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .market-header-inner > .market-search {
    display: none;
  }
  .market-brand {
    justify-self: start;
  }
  .market-cart {
    justify-self: end;
  }
}
@media (max-width: 575.98px) {
  .market-header-inner {
    min-height: 52px;
    padding: 5px 10px 3px;
    gap: 8px;
  }
  .market-menu {
    width: 36px;
    min-height: 38px;
    font-size: 1.45rem;
  }
  .market-brand {
    font-size: 1.28rem;
    padding: 4px 3px;
  }
  .market-cart {
    padding: 5px 10px 5px 8px;
    gap: 5px;
  }
  .market-cart-icon {
    font-size: 1.35rem;
  }
  .market-mobile-search {
    padding: 3px 10px 8px;
  }
  .market-search {
    height: 38px;
  }
  .market-search select {
    width: 76px;
    font-size: 0.75rem;
    padding: 0 6px;
  }
  .market-search input {
    font-size: 0.86rem;
    padding: 0 9px;
  }
  .market-search button {
    width: 44px;
    font-size: 1.1rem;
  }
  .market-category-inner {
    min-height: 35px;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .market-category-inner::-webkit-scrollbar {
    display: none;
  }
  .market-category-inner a,
  .market-category-location {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

/* MOBILE NAV OFFCANVAS */
.offcanvas-start {
  width: 260px;
}
.offcanvas-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.offcanvas .nav-link {
  padding-left: 0;
}

/* LEGACY SEARCH FORM SUPPORT */
.top-search-sticky {
  display: none;
}
.top-search-inner {
  padding: 0 16px;
}
.top-search-form {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  padding: 4px 6px 4px 10px;
  align-items: center;
}
.top-search-form i {
  font-size: 1rem;
  color: var(--muted);
}
.top-search-form input {
  border: none;
  flex: 1;
  padding: 6px 8px 8px;
  font-size: 0.85rem;
  outline: none;
  color: var(--text);
}
.top-search-form button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  gap: 4px;
}
.top-search-form button:hover {
  background: #7c3aed;
}
@media (max-width: 767.98px) {
  .top-search-sticky {
    display: none;
  }
}

/* PAGE LAYOUT */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 60px;
}
section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.section-link {
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.section-link:hover {
  color: #be185d;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 14px;
}

/* BROWSE BY STYLE */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 575.98px) {
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.style-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  cursor: pointer;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.style-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.style-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* DECORATOR CARDS (Desktop grid) */
.decor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 767.98px) {
  .decor-grid {
    display: none;
  }
}
.decor-card {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  border: 1px solid #d5d9d9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-img-top {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f7f7f7;
}
.card-body {
  padding: 12px 12px 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text);
}
.decor-rating {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 3px;
  background-color: #fff8e3;
  color: #b12704;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.decor-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.decor-desc {
  font-size: 0.76rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 2px 0 4px;
  flex-grow: 1;
}
.decor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.decor-tag {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.card-footer {
  padding: 8px 10px 10px;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}
.decor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.7rem;
}
.decor-actions span {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
}

/* MOBILE CAROUSEL */
.decor-carousel-wrapper {
  display: none;
}
@media (max-width: 767.98px) {
  .decor-carousel-wrapper {
    display: block;
  }
  .decor-carousel .carousel-item {
    padding: 4px 8px 8px;
  }
  .decor-carousel .decor-card {
    max-width: 100%;
    margin: 0 auto;
  }
  .decor-carousel .card-img-top {
    height: 210px;
  }

  /* Hide default arrows */
  .decor-carousel .carousel-control-prev,
  .decor-carousel .carousel-control-next {
    display: none;
  }

  .carousel-controls-bottom {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
  }
  .carousel-controls-bottom button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-controls-bottom i {
    font-size: 20px;
    color: #ffffff;
  }
}

/* Slightly smoother carousel transition */
.carousel-inner {
  transition: transform 0.9s ease-in-out;
}

/* AREA LIST */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.area-pill {
  padding: 7px 12px;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* ECOMMERCE */
.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.product-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #d5d9d9;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.product-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.product-card-action {
  position: relative;
  z-index: 1;
}
.product-img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f7f7f7;
}
.product-body {
  padding: 10px 12px 12px;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #0f1111;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #b12704;
  margin-bottom: 6px;
}
.product-desc {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.product-btn {
  background: #ffd814;
  color: #0f1111;
  border: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.product-btn:hover {
  background: #f7ca00;
  color: #0f1111;
}
.product-actions > a.product-btn {
  background: #ffffff;
  border: 1px solid #d5d9d9;
}
.product-actions > a.product-btn:hover {
  background: #f7fafa;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.product-actions > .product-btn,
.product-actions > .cart-control {
  flex: 1 1 0;
  min-width: 0;
}
.product-actions > .product-btn {
  width: auto;
}
.cart-control {
  min-width: 118px;
}
.cart-add-button {
  min-height: 35px;
}
.cart-stepper {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 35px;
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: #ffd814;
  color: #0f1111;
  border: 1px solid #fcd200;
  box-shadow: none;
}
.cart-control.is-in-cart .cart-add-button {
  display: none !important;
}
.cart-control.is-in-cart .cart-stepper {
  display: flex;
}
.cart-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid #d5d9d9;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1111;
  line-height: 1;
}
.cart-stepper-btn:disabled,
.cart-add-button:disabled {
  opacity: 0.68;
  cursor: wait;
}
.cart-quantity {
  min-width: 24px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}
.pv-buy-buttons .cart-control {
  width: 100%;
}
.pv-buy-buttons .cart-stepper {
  min-height: 38px;
}

/* FEATURE SECTIONS */
.feature-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 16px 18px;
  box-shadow: var(--shadow-soft);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.feature-item {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border: 1px solid #f3f4f6;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background-color: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 auto 8px;
}
.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.feature-desc {
  font-size: 0.76rem;
  color: var(--muted);
}


/* HOW IT WORKS STEPS */
.steps-section .feature-item {
  text-align: left;
  padding: 14px 14px 14px 40px;
  position: relative;
}
.steps-section .feature-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--primary-soft);
}
.steps-section .feature-item:last-child::before {
  bottom: 24px;
}
.step-number {
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  left: 8px;
  top: 10px;
}

/* TESTIMONIALS */
.testimonial-section .feature-item {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-left: 4px solid var(--primary);
  text-align: left;
}
.testimonial-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.testimonial-quote {
  font-style: italic;
  color: var(--muted);
  font-size: 0.78rem;
  position: relative;
  padding-left: 10px;
}
.testimonial-quote::before {
  content: '"';
  font-size: 1.4rem;
  color: var(--primary);
  position: absolute;
  left: -4px;
  top: -8px;
}

/* TIPS */
.tips-section .feature-item {
  text-align: left;
  position: relative;
  padding-right: 14px;
}
.tips-section .feature-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-soft));
  border-radius: 12px;
}
.tip-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.86rem;
}

/* CTA CARD */
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  text-align: center;
}
.cta-card .btn-light {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 8px;
  background: rgba(255,255,255,0.95);
  border: none;
  color: var(--primary);
  font-weight: 600;
}

/* SMALL TEXT */
.mini-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* FOOTER */
footer {
  background: #111827;
  color: #d1d5db;
  padding: 28px 0 18px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.85;
}
.footer-section h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section li {
  margin-bottom: 6px;
}
.footer-section a {
  color: #9ca3af;
  transition: color 0.2s ease;
  font-size: 0.8rem;
}
.footer-section a:hover {
  color: var(--primary);
}
.social-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: #d1d5db;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-offset);
  height: var(--bottom-nav-height);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1030;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.06);
}
.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 2px;
}
.bottom-item i {
  font-size: 1.1rem;
  margin-bottom: 1px;
}
.bottom-item.active {
  color: var(--primary);
  font-weight: 600;
}
@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  :root {
    --bottom-nav-height: 66px;
    --bottom-nav-offset: max(10px, env(safe-area-inset-bottom));
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
  }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .page-wrap {
    padding: 20px 12px 56px;
  }
  .feature-section {
    padding: 16px 12px 14px;
  }
}
