/*
 * Lana Fleur — WooCommerce styles
 * Only loaded when WooCommerce is active.
 * --------------------------------------------------------------------
 */

/* ─── Shop hero / toolbar ────────────────────────────────────────── */
.shop-hero {
  padding: 64px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--lf-line-soft);
}
.shop-hero .page-title { font-style: italic; color: var(--lf-gold-dark); font-weight: 400; }
.shop-page { padding: 40px 0 96px; }
.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } .shop-sidebar { order: 2; } }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 14px;
}
.woocommerce-result-count {
  margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lf-ink); font-weight: 600;
}
.woocommerce-ordering select {
  min-width: 220px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--lf-line);
  border-radius: var(--lf-radius-sm); font-size: 13px;
}

/* ─── Sidebar widgets ────────────────────────────────────────────── */
.shop-sidebar { font-size: 14px; }
.shop-sidebar .widget { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--lf-line); }
.shop-sidebar .widget:last-child { border-bottom: 0; }
.shop-sidebar .widget-title { font-family: var(--lf-font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lf-gold-dark); font-weight: 600; margin: 0 0 16px; }
.shop-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shop-sidebar a { color: var(--lf-ink-soft); }
.shop-sidebar a:hover { color: var(--lf-gold-dark); }

/* ─── Product grid (loop) ────────────────────────────────────────── */
.products {
  list-style: none; padding: 0; margin: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px !important;
}
.products .product-card {
  background: #fff;
  border-radius: var(--lf-radius-md);
  border: 1px solid var(--lf-line-soft);
  overflow: hidden;
  display: flex !important; flex-direction: column;
  position: relative;
  transition: transform .3s var(--lf-ease), border-color .3s var(--lf-ease), box-shadow .3s var(--lf-ease);
}
.products .product-card:hover { transform: translateY(-3px); border-color: var(--lf-gold); box-shadow: var(--lf-shadow-card); }
.product-card-link {
  display: flex !important; flex-direction: column; flex: 1;
  color: inherit;
}
.product-card-link:hover { color: inherit; }

.card-media {
  position: relative; aspect-ratio: 1/1; background: var(--lf-bg-muted); overflow: hidden;
}
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--lf-ease);
}
.products .product-card:hover .card-media img { transform: scale(1.05); }

.card-tag {
  position: absolute; top: 14px; left: 14px;
  background: #fff; color: var(--lf-ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  box-shadow: var(--lf-shadow-bar);
}
[dir="rtl"] .card-tag { left: auto; right: 14px; }
.card-tag--sale { background: var(--lf-rose); color: #fff; top: 44px; }
.card-heart {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--lf-ink-mute);
  display: grid; place-items: center;
  box-shadow: var(--lf-shadow-bar);
  transition: color .2s;
}
[dir="rtl"] .card-heart { right: auto; left: 12px; }
.card-heart:hover { color: var(--lf-rose); }

.card-body { padding: 16px 18px 18px; }
.card-title {
  font-family: var(--lf-font-display);
  font-size: 17px; font-weight: 500;
  color: var(--lf-gold-dark);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-title a { color: inherit; }
.card-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--lf-line-soft);
  background: var(--lf-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-foot .price {
  font-family: var(--lf-font-body);
  font-weight: 700; font-size: 15px; color: var(--lf-ink);
  letter-spacing: 0.04em; line-height: 1; margin: 0;
}
.card-foot .price del { color: var(--lf-ink-mute); font-weight: 400; font-size: 12px; margin-right: 4px; }
.card-foot .price ins { background: transparent; color: var(--lf-rose); }
.card-cta, .card-foot .button {
  padding: 10px 14px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: transparent; color: var(--lf-gold-dark);
  border: 0;
}
.card-cta:hover { color: var(--lf-ink); background: transparent; }
.card-cta::after { content: " ›"; }
.card-cta.added { color: var(--lf-leaf); }
.added_to_cart { display: none; }

/* ─── Single product ─────────────────────────────────────────────── */
.single-product-page { padding: 32px 0 96px; }
.single-product-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin: 32px 0;
}
@media (max-width: 900px) { .single-product-wrap { grid-template-columns: 1fr; gap: 32px; } }
.single-product-gallery .woocommerce-product-gallery { width: 100% !important; }
.single-product-gallery img { border-radius: var(--lf-radius-md); }
.single-product-summary { padding-top: 8px; }
.single-product-summary .product_title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-style: italic; color: var(--lf-gold-dark); font-weight: 400;
  margin: 0 0 16px;
}
.single-product-summary .price {
  font-family: var(--lf-font-body); font-weight: 700; font-size: 24px;
  color: var(--lf-ink); margin: 0 0 16px; display: inline-flex; gap: 10px; align-items: baseline;
}
.single-product-summary .price ins { background: transparent; color: var(--lf-rose); text-decoration: none; }
.single-product-summary .price del { color: var(--lf-ink-mute); font-size: 16px; font-weight: 400; }
.single-product-summary .woocommerce-product-details__short-description { color: var(--lf-ink-soft); margin: 0 0 24px; line-height: 1.7; }
.single-product-summary form.cart {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 20px 0; border-top: 1px solid var(--lf-line); border-bottom: 1px solid var(--lf-line);
}
.single-product-summary form.cart .quantity { display: inline-flex; align-items: center; }
.single-product-summary form.cart input.qty {
  width: 76px; padding: 12px 14px; border: 1px solid var(--lf-line);
  background: #fff; border-radius: var(--lf-radius-sm); font-size: 14px; text-align: center;
}
.single-product-summary form.cart button.single_add_to_cart_button {
  padding: 14px 24px; background: var(--lf-ink); color: #fff;
  border-radius: var(--lf-radius-pill); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  border: 0; cursor: pointer;
  transition: background .2s;
}
.single-product-summary form.cart button.single_add_to_cart_button:hover { background: var(--lf-gold-dark); }
.product_meta { font-size: 12px; color: var(--lf-ink-mute); letter-spacing: 0.04em; }
.product_meta > span { display: block; padding: 4px 0; }
.product_meta a { color: var(--lf-ink); }

.single-product-usps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--lf-ink-soft); }
.single-product-usps li { display: flex; align-items: center; gap: 10px; }
.single-product-usps svg { color: var(--lf-gold-dark); }

/* Tabs */
.single-product-tabs { margin-top: 64px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 24px; list-style: none; padding: 0 0 14px; margin: 0 0 32px;
  border-bottom: 1px solid var(--lf-line);
}
.woocommerce-tabs ul.tabs li a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: var(--lf-ink-mute);
}
.woocommerce-tabs ul.tabs li.active a { color: var(--lf-ink); border-bottom: 2px solid var(--lf-gold); padding-bottom: 14px; }

/* Related */
.related, .upsells { margin: 80px 0 0; }
.related > h2, .upsells > h2, .cross-sells > h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); font-style: italic; color: var(--lf-gold-dark); font-weight: 400; margin: 0 0 28px;
}

/* ─── Cart page ─────────────────────────────────────────────────── */
.cart-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin: 32px 0 96px;
}
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; gap: 32px; } }
.shop_table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--lf-radius-md); overflow: hidden;
  border: 1px solid var(--lf-line-soft);
}
.shop_table th {
  padding: 14px 18px; text-align: left;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lf-ink-soft); font-weight: 600;
  background: var(--lf-bg-soft);
}
.shop_table td { padding: 18px; border-top: 1px solid var(--lf-line-soft); vertical-align: middle; }
.shop_table td.product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--lf-radius-sm); }
.shop_table .product-name a { font-family: var(--lf-font-display); font-size: 17px; color: var(--lf-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.shop_table .product-remove a {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--lf-bg); color: var(--lf-ink-mute); font-size: 18px; line-height: 1;
  transition: background .2s, color .2s;
}
.shop_table .product-remove a:hover { background: var(--lf-rose); color: #fff; }
.shop_table td.actions { padding: 18px; }
.shop_table .coupon { display: inline-flex; gap: 8px; }
.shop_table .coupon .input-text { width: 200px; padding: 10px 14px; }

.cart_totals h2 { font-size: 1.4rem; font-style: italic; color: var(--lf-gold-dark); margin: 0 0 18px; font-weight: 400; }
.cart_totals { background: #fff; border-radius: var(--lf-radius-md); border: 1px solid var(--lf-line-soft); padding: 24px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 12px 0; border-bottom: 1px solid var(--lf-line-soft); }
.cart_totals table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--lf-ink-soft); }
.cart_totals table td { text-align: right; font-weight: 700; }
.cart_totals .order-total td { font-size: 18px; color: var(--lf-ink); }
.wc-proceed-to-checkout .checkout-button {
  display: block; padding: 16px; text-align: center;
  background: var(--lf-ink); color: #fff;
  border-radius: var(--lf-radius-pill);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin-top: 18px;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--lf-gold-dark); color: #fff; }

/* ─── Checkout ──────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; margin: 32px 0 96px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; gap: 32px; } }
.checkout h3 { font-size: 1.2rem; margin: 0 0 16px; font-style: italic; color: var(--lf-gold-dark); font-weight: 400; }
.checkout #customer_details { display: grid; gap: 24px; }
@media (min-width: 768px) { .checkout #customer_details { grid-template-columns: 1fr 1fr; } }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper { display: grid; gap: 14px; }
.woocommerce-form-row { display: flex; flex-direction: column; gap: 6px; }
.woocommerce-input-wrapper { display: block; }
.checkout-aside {
  background: #fff; padding: 28px; border-radius: var(--lf-radius-md);
  border: 1px solid var(--lf-line-soft); align-self: start;
  position: sticky; top: 120px;
}
.woocommerce-checkout-review-order-table {
  width: 100%; border-collapse: collapse; margin: 0 0 16px;
}
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--lf-line-soft); font-size: 14px; }
.woocommerce-checkout-review-order-table td { text-align: right; }
.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.wc_payment_method { background: var(--lf-bg); border: 1px solid var(--lf-line-soft); border-radius: var(--lf-radius-sm); padding: 12px 14px; }
.wc_payment_method label { font-weight: 600; }
.place-order .button#place_order {
  display: block; width: 100%; padding: 16px;
  background: var(--lf-ink); color: #fff;
  border-radius: var(--lf-radius-pill);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin: 16px 0 8px;
}
.place-order .button#place_order:hover { background: var(--lf-gold-dark); }
.checkout-trust-row { margin: 14px 0 0; display: flex; justify-content: center; }

/* ─── Notices ───────────────────────────────────────────────────── */
.woocommerce-notices-wrapper { margin-top: 24px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--lf-gold-soft); color: var(--lf-gold-dark);
  border: 1px solid var(--lf-gold); border-radius: var(--lf-radius-md);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px;
  list-style: none;
}
.woocommerce-error { background: #FDECEA; color: var(--lf-rose); border-color: var(--lf-rose); }
.woocommerce-info { background: var(--lf-bg-muted); color: var(--lf-ink-soft); border-color: var(--lf-line); }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
  color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ─── Account / mini-cart ───────────────────────────────────────── */
.lf-mini-cart { padding: 20px; min-width: 280px; }
.lf-mini-cart .product_list_widget { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lf-mini-cart .product_list_widget img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--lf-line); margin: 12px 0; font-weight: 700; }
.woocommerce-mini-cart__buttons { display: flex; gap: 8px; }

/* ─── Responsive WC ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .shop_table thead { display: none; }
  .shop_table, .shop_table tbody, .shop_table tr, .shop_table td { display: block; width: 100%; }
  .shop_table tr { border-bottom: 1px solid var(--lf-line); padding: 14px 0; }
  .shop_table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; }
  .shop_table td::before { content: attr(data-title); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lf-ink-mute); font-weight: 600; }
  .shop_table td.product-thumbnail::before { display: none; }
  .shop_table .product-remove { text-align: right; }
}
