/*
Theme Name: Lovely-ismail-kavi
Theme URI: https://espace-beauty.shop
Author: Kavi for ismail
Description: A light, fast, Elementor-friendly WooCommerce theme built for COD stores. No forced layouts: every page and product can hide the header, the footer or the title, go full width, or render as a pure Elementor canvas. Product pages are a tight photo -> title -> price -> order-form stack on mobile by design.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: lovely-ismail-kavi
*/

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Nothing may ever widen the page: no sideways scrolling, no white side gap. */
html, body { overflow-x: hidden; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #2b0a2e;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: #b625b9; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.lk-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lk-main { padding: 28px 0 40px; }
.lk-main--fluid { padding: 0; }
.lk-main--fluid .lk-container { max-width: none; padding: 0; }
.lk-page-title { font-size: 28px; margin: 0 0 18px; }

/* ============ Header ============ */
.lk-header { background: #fff; position: relative; z-index: 60; }
.lk-header-main { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.lk-logo { flex: 0 0 auto; display: flex; align-items: center; }
.lk-logo img { max-height: 74px; width: auto; display: block; }
.lk-logo .lk-site-name { font-size: 24px; font-weight: 800; color: #2b0a2e; }
.lk-header-search { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.lk-header-search form { display: flex; border: 2px solid #b625b9; border-radius: 999px; overflow: hidden; background: #fff; }
.lk-header-search input[type="search"] { flex: 1; border: 0; padding: 9px 16px; font: inherit; outline: none; min-width: 0; }
.lk-header-search button { border: 0; background: #b625b9; color: #fff; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.lk-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.lk-header-actions a { color: #2b0a2e; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lk-header-actions svg { width: 24px; height: 24px; }
.lk-cart-link .lk-cart-count { background: #b625b9; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 5px; }

/* Magenta nav bar */
.lk-nav { background: #b625b9; position: sticky; top: 0; z-index: 59; }
.lk-nav-inner { display: flex; align-items: center; }
.lk-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.lk-menu li { margin: 0; }
.lk-menu a { display: block; color: #fff; padding: 11px 16px; font-weight: 700; font-size: 15px; }
.lk-menu a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.lk-burger { display: none; background: none; border: 0; color: #2b0a2e; padding: 6px; cursor: pointer; align-items: center; }
.lk-burger svg { width: 26px; height: 26px; }
.lk-search-row { display: none; background: #fff; padding: 0 0 12px; }
.lk-search-row .lk-header-search { max-width: none; margin: 0; }
.lk-mobile-panel { display: none; background: #fff; border-bottom: 3px solid #b625b9; padding: 12px 0 16px; }
.lk-mobile-panel.open { display: block; }
.lk-mobile-panel .lk-menu { flex-direction: column; }
.lk-mobile-panel .lk-menu a { color: #2b0a2e; padding: 10px 2px; border-bottom: 1px solid #f3e2f3; }
.lk-mobile-panel .lk-header-search { max-width: none; margin-top: 12px; }

/* ============ Footer ============ */
.lk-footer { background: #2b0a2e; color: #f6e9f6; margin-top: 0; }
.lk-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 36px 0 26px; }
.lk-footer h3, .lk-footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.lk-footer .lk-brand-name { font-size: 22px; font-weight: 800; color: #fff; }
/* Footer accordions: expanded on desktop, collapsible on mobile. */
.lk-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; padding: 0; margin: 0 0 12px; color: #fff; font: inherit; font-size: 18px; font-weight: 700; text-align: start; cursor: pointer; }
.lk-acc-chev { display: none; width: 20px; height: 20px; flex: 0 0 auto; transition: transform .25s ease; }
.lk-footer ul { list-style: none; margin: 0; padding: 0; }
.lk-footer li { margin-bottom: 8px; }
.lk-footer a { color: #f6e9f6; }
.lk-footer a:hover { color: #fff; }
.lk-footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 14px 0; text-align: center; font-size: 14px; }

/* ============ Buttons / Woo general ============ */
.button, button.button, a.button, input[type="submit"].button {
  background: #b625b9; color: #fff !important; border: 0; border-radius: 10px;
  padding: 11px 22px; font: inherit; font-weight: 800; cursor: pointer; display: inline-block; text-align: center;
}
.button:hover, a.button:hover { background: #9c1da0; text-decoration: none; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: #b625b9; color: #fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #9c1da0; color: #fff; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
  border-top-color: #b625b9; background: #fbf4fb;
}
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: #b625b9; }
.price { color: #b625b9; font-weight: 800; }
.price del { color: #9a8a9c; font-weight: 400; }
.price ins { text-decoration: none; }
span.onsale {
  background: #b625b9 !important; color: #fff; border-radius: 999px !important;
  min-height: 0 !important; min-width: 0 !important; line-height: 1.4 !important;
  padding: 3px 10px !important; font-size: 13px; top: 10px !important; inset-inline-start: 10px !important;
}

/* ============ Shop grid ============ */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; background: #fff; border: 1px solid #f0e0f0; border-radius: 14px; overflow: hidden; padding-bottom: 14px; text-align: center; }
.woocommerce ul.products li.product a img { margin: 0 0 10px; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; padding: 0 10px; color: #2b0a2e; }
.woocommerce ul.products li.product .price { display: block; margin-bottom: 10px; }
.woocommerce ul.products li.product .button { margin: 0 10px; padding: 9px 14px; font-size: 14px; background: #b625b9; color: #fff; }
@media (min-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
}
.woocommerce .woocommerce-ordering select { padding: 8px; border-radius: 8px; border: 1px solid #e3cbe3; font: inherit; }
.woocommerce nav.woocommerce-pagination { margin-top: 24px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { padding: 8px 13px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: #b625b9; color: #fff; }

/* ============ Single product: tight stack by design ============ */
.single-product div.product { display: grid; grid-template-columns: 1fr; gap: 12px; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0; }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0; }
.single-product .product_title { font-size: 24px; margin: 0 0 6px; }
.single-product div.product p.price, .single-product div.product span.price { font-size: 22px; margin: 0 0 10px; }
.single-product .woocommerce-product-details__short-description { margin-bottom: 10px; }
.single-product div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 6px; }
.single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.single-product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 14px; border: 0; }
.single-product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product .woocommerce-tabs ul.tabs li { border: 0; background: #fbf4fb; border-radius: 999px; margin: 0 0 0 6px; }
.single-product .woocommerce-tabs ul.tabs li.active { background: #b625b9; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.single-product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce-tabs ul.tabs li::after { display: none; }
.single-product .woocommerce-tabs .panel { margin: 0; }
.single-product .woocommerce-tabs .panel img { display: block; margin: 0 auto 12px; }
@media (min-width: 900px) {
  .single-product div.product { grid-template-columns: 1fr 1fr; gap: 28px; }
  .single-product .product_title { font-size: 30px; }
}

/* ============ Cart / checkout ============ */
.woocommerce table.shop_table { border-radius: 12px; overflow: hidden; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid #e3cbe3; border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff;
}
.woocommerce-checkout #payment { background: #fbf4fb; border-radius: 12px; }
.woocommerce .quantity .qty { padding: 8px; border-radius: 8px; border: 1px solid #e3cbe3; }

/* ============ Blog / generic ============ */
.lk-post { margin-bottom: 28px; }
.lk-post h2 { font-size: 22px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ Mobile header ============ */
@media (max-width: 899px) {
  /* One-row mobile header: menu button at the start (right in RTL),
     logo centred, search + cart at the end (left in RTL). */
  .lk-header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 0; }
  .lk-burger { display: inline-flex; }
  .lk-logo { justify-self: center; }
  .lk-logo img { max-height: 52px; }
  .lk-header-main .lk-header-search { display: none; }
  /* Search is a full-width line under the header row, always visible. */
  .lk-search-row { display: block; padding: 2px 0 12px; }
  .lk-nav { display: none; }
  .lk-footer-cols { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 18px; }
  /* Footer: clear title -> subtitle list hierarchy. */
  .lk-footer h4, .lk-footer .lk-brand-name, .lk-footer .lk-acc-head { font-size: 20px; margin-bottom: 10px; }
  .lk-footer li { margin-bottom: 0; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .lk-footer li:last-child { border-bottom: 0; }
  /* Footer accordions collapsed by default on mobile: shorter footer. */
  .lk-acc-chev { display: block; }
  .lk-acc-body { display: none; }
  .lk-acc.open .lk-acc-body { display: block; }
  .lk-acc.open .lk-acc-chev { transform: rotate(180deg); }
  .lk-main { padding: 16px 0 28px; }
  .lk-page-title { font-size: 23px; }
  /* Large description pictures run edge to edge (the theme's JS marks
     them .lk-bleed); the container's 16px side padding is cancelled. */
  .single-product .woocommerce-tabs .panel img.lk-bleed {
    width: calc(100% + 32px); max-width: none;
    margin-left: -16px; margin-right: -16px; margin-bottom: 12px;
  }
}
