/* WooCommerce ↔ Demo A bridge */
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products::before,
ul.products::after { display: none !important; content: none !important; }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none;
}
/* Ellu .card product tiles (category + related + home loops) */
ul.products li.product.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
ul.products li.product.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(8,58,79,.1);
}
ul.products li.product.card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
  display: block;
  margin: 0;
}
ul.products li.product.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
ul.products li.product.card .body { padding: 1rem 1rem 1.15rem; }
ul.products li.product.card a.woocommerce-LoopProduct-link { display: contents; }
/* Override Woo green (#77a464) on loop prices → Ellu navy */
ul.products li.product .price,
ul.products li.product.card .price,
ul.products li.product.card .price .amount,
ul.products li.product.card .price .woocommerce-Price-amount,
ul.products li.product.card .price bdi,
ul.products li.product.card .price ins,
ul.products li.product.card .price ins .amount {
  color: var(--navy) !important;
}
ul.products li.product.card .price del,
ul.products li.product.card .price del .amount,
ul.products li.product.card .price del bdi {
  color: var(--muted) !important;
  opacity: .85;
}
.toolbar .woocommerce-result-count,
.toolbar .woocommerce-ordering {
  font-size: .84rem;
  color: var(--muted);
  margin: 0;
}
.toolbar .woocommerce-ordering select {
  padding: .4rem .55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font: inherit;
}
.woocommerce .woocommerce-breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}
.sidebar .widget {
  border-bottom: 1px solid var(--line);
  padding: .7rem 1rem 1rem;
}
.sidebar .widgettitle,
.sidebar .widget > h2 {
  margin: .35rem 0 .55rem;
  font-family: "Outfit", sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}
.sidebar .product-categories,
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .product-categories a {
  display: block;
  padding: .32rem 0;
  color: var(--ink);
  font-size: .86rem;
}
.sidebar .product-categories a:hover {
  color: var(--teal);
}
.wcunit {
  display: inline-block;
  margin-left: .35rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 2.2;
}
.onsale {
  background: var(--gold) !important;
  color: var(--btn-text) !important;
  font-weight: 700;
  border-radius: 2px;
  min-height: auto;
  line-height: 1.2;
  padding: .35rem .5rem;
}
.lm-single {
  padding: 1rem 22px 3rem;
}
.lm-single .product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.lm-single .woocommerce-product-gallery {
  margin: 0;
}
.lm-single .summary {
  margin: 0;
}
.lm-single .summary .price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin: .6rem 0 1rem;
}
.lm-single .single_add_to_cart_button,
.lm-single .button.alt,
.prod-info .single_add_to_cart_button,
.prod-info .button.alt,
.lm-buy-row .single_add_to_cart_button,
form.cart .single_add_to_cart_button {
  background: var(--gold) !important;
  color: var(--on-gold, var(--btn-text, #2c2416)) !important;
  border: 0 !important;
  font-weight: 700;
  border-radius: 4px;
  padding: .7rem 1.4rem;
  min-height: 46px;
  letter-spacing: .02em;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
}
.lm-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: stretch;
}
.lm-buy-row form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: stretch;
  margin: 0;
}
.lm-buy-row .quantity.qty,
.quantity.qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
  width: auto;
  float: none;
}
.quantity.qty .qty-btn {
  width: 38px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.quantity.qty .qty-btn:hover { background: var(--cream); }
.quantity.qty input.qty {
  width: 42px;
  height: 46px;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  background: #fff;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.quantity.qty input.qty::-webkit-outer-spin-button,
.quantity.qty input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lm-buy-row .variations {
  width: 100%;
  margin: 0 0 .5rem;
}
.lm-buy-row .variations td,
.lm-buy-row .variations th {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}
.lm-buy-row .variations label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .45rem;
}
.lm-buy-row .variations select {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--line);
  background: #fff;
  padding: .65rem .75rem;
  font: inherit;
  border-radius: 2px;
  margin-bottom: .85rem;
}
.lm-buy-row .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: stretch;
}
@media (max-width: 560px) {
  .lm-buy-row,
  .lm-buy-row form.cart,
  .lm-buy-row .woocommerce-variation-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }
  .lm-buy-row .single_add_to_cart_button,
  .lm-buy-row .btn-ghost { width: 100%; justify-content: center; }
  .quantity.qty { align-self: stretch; justify-content: space-between; }
}
.lm-home-hero {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 55%, #0a4558);
  color: var(--sand);
  padding: 3.2rem 0 2.8rem;
  margin-bottom: 2rem;
}
.lm-home-hero .brand-mark {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 .7rem;
}
.lm-home-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #fff;
  max-width: 14ch;
}
.lm-home-hero .lead {
  margin: 1rem 0 1.2rem;
  color: var(--aqua);
  font-size: 1.05rem;
  max-width: 40ch;
  font-weight: 300;
}
.lm-home-products {
  padding-bottom: 3rem;
}
.lm-home-products .section-head {
  margin-bottom: 1.2rem;
}
.lm-home-products .section-head h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--navy);
}
@media (max-width: 980px) {
  .lm-single .product { grid-template-columns: 1fr; }
}

/* Mega menu columns */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(720px, 92vw);
  text-align: left;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 30, 60, .18);
  border-top: 3px solid var(--gold);
  padding: 1.1rem 1.4rem;
  display: none;
  z-index: 40;
}
.mega .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.mega h4 {
  margin: 0 0 .5rem;
  font-family: "Outfit", sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
}
.mega a {
  display: block;
  padding: .28rem 0;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
  white-space: normal;
  text-align: left;
}
.mega a:hover { color: var(--teal); }
.has-flyout:hover > .mega { display: block; }

/* Kujundusideed */
.idee-wrap { padding: 1.5rem 22px 3rem; }
.idee-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.idee-image img { width: 100%; height: auto; border-radius: 2px; }
.idee-cats { margin: 1rem 0; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.idee-cat-label { color: var(--navy); font-weight: 600; margin-right: .25rem; }
.idee-share { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.idee-share a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}
.idee-archive, .idee-landing { padding: 1.5rem 22px 3rem; }
.idee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.idee-card h2 { font-size: 1.25rem; margin: .6rem 0 .2rem; }
.idee-card h2 a { color: var(--navy); }
.idee-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.idee-card .thumb { display: block; overflow: hidden; border-radius: 2px; background: var(--sand); aspect-ratio: 4/3; }
.idee-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .idee-grid, .idee-cards { grid-template-columns: 1fr 1fr; }
  .mega .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .idee-grid, .idee-cards { grid-template-columns: 1fr; }
}
.lm-product-badge {
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  margin: 0 0 .5rem;
}
.lm-product-shipping {
  color: var(--muted);
  font-size: .9rem;
}
.lm-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.lm-burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  width: 22px;
}
@media (max-width: 980px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .single-product .product { grid-template-columns: 1fr; }
  .header-links { display: none; }
  .lm-burger { display: flex; }
}
@media (max-width: 560px) {
  ul.products { grid-template-columns: 1fr; }
}
