/* ================================
   HÕÕG / SHOP LOOK — PREMIUM CSS
   Works with WooCommerce grids + shortcodes
   ================================ */

/* --- Grid spacing --- */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* Tablet */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* --- Product card reset --- */
.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* --- Product image styling --- */
.woocommerce ul.products li.product a img {
  border-radius: 10px;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .35s ease, filter .35s ease;
  margin: 0 0 12px 0;
}

.woocommerce ul.products li.product a:hover img {
  transform: scale(1.01);
  filter: saturate(1.03) contrast(1.02);
}

/* --- Product title (editorial) --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  font-weight: 500;
  margin: 0 0 6px 0;
}

/* --- Price --- */
.woocommerce ul.products li.product .price {
  font-size: 14px;
  opacity: .92;
  margin: 0 0 12px 0;
}

/* Sale badge (keep minimal) */
.woocommerce span.onsale {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1;
}

/* --- Button: pill + clean --- */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  letter-spacing: .3px;
  border: 1px solid rgba(17,17,17,.12);
  background: #111;
  color: #fff;
  transition: transform .15s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: none;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #2a2a2a;
  border-color: rgba(17,17,17,.2);
  transform: translateY(-1px);
}

/* --- OPTIONAL: hide Add to cart buttons in grid (premium brand look) --- */
/* Kui tahad peita, jäta see plokk sisse.
   Kui tahad näidata, kustuta see plokk. */
.woocommerce ul.products li.product .button {
  display: none !important;
}

/* --- Make the whole product card clickable feel --- */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
}

/* --- Remove star rating + misc clutter in loop --- */
.woocommerce ul.products li.product .star-rating {
  display: none !important;
}

/* --- Product page: cleaner layout bits (safe minimal) --- */
.single-product .product_title {
  letter-spacing: .2px;
}

/* ================================
   AFTER 9 SECTION (dark)
   Add class 'after9' to the Elementor section/container
   ================================ */
.after9 {
  color: #f5f3ef;
}

.after9 .woocommerce ul.products li.product .woocommerce-loop-product__title,
.after9 .woocommerce ul.products li.product .price,
.after9 .woocommerce ul.products li.product a,
.after9 .woocommerce ul.products li.product a:visited {
  color: #f5f3ef;
}

.after9 .woocommerce ul.products li.product a img {
  filter: contrast(1.03) saturate(1.02);
}

/* If you DO show buttons in After9, make them light */
.after9 .woocommerce ul.products li.product .button,
.after9 .woocommerce a.button,
.after9 .woocommerce button.button,
.after9 .woocommerce input.button {
  background: transparent;
  color: #f5f3ef;
  border-color: rgba(245,243,239,.35);
}

.after9 .woocommerce ul.products li.product .button:hover,
.after9 .woocommerce a.button:hover,
.after9 .woocommerce button.button:hover,
.after9 .woocommerce input.button:hover {
  background: rgba(245,243,239,.08);
  transform: translateY(-1px);
}

/* ================================
   Optional: slightly tighter Woo breadcrumb / titles
   ================================ */
.woocommerce-breadcrumb {
  opacity: .75;
  font-size: 13px;
}


/* =========================
   HÕÕG – Contact Form Style
   ========================= */

/* Vormiplokk */
.custom-contact-form {
    background-color: #F4F2ED; /* pehme soe hele */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    max-width: 720px;
    margin: 0 auto;
}

/* Labelid */
.custom-contact-form label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5F6A5C; /* hallikas oliiv */
    margin-bottom: 8px;
    display: block;
}

/* Sisendväljad */
.custom-contact-form input,
.custom-contact-form textarea,
.custom-contact-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(95, 106, 92, 0.25);
    background-color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

/* Hover */
.custom-contact-form input:hover,
.custom-contact-form textarea:hover,
.custom-contact-form select:hover {
    border-color: #6B7566;
}

/* Focus efekt */
.custom-contact-form input:focus,
.custom-contact-form textarea:focus,
.custom-contact-form select:focus {
    border-color: #6B7566;
    box-shadow: 0 0 0 3px rgba(107, 117, 102, 0.15);
}

/* Textarea kõrgus */
.custom-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Nupp */
.custom-contact-form button,
.custom-contact-form input[type="submit"] {
    background-color: #5F6A5C; /* sinu oliiv */
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

/* Nupu hover */
.custom-contact-form button:hover,
.custom-contact-form input[type="submit"]:hover {
    background-color: #4F594C;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Väiksem ekraan */
@media (max-width: 768px) {
    .custom-contact-form {
        padding: 25px;
    }
}

[products category="latte-kuunlad" columns="3"]

.woocommerce a.button {
    background: #000;
    color: #fff;
    border-radius: 25px;
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: 1px;
}

.woocommerce a.button:hover {
    background: #333;
}