/*
Theme Name: ReNova
Theme URI: https://example.com/renova
Description: Premium standalone WooCommerce theme for refurbished phones & spare parts, carrying the ReNova dark luxury design. No parent theme required.
Author: ReNova
Author URI: https://example.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renova
*/

/* ============================================================
   ReNova design system  (imported via functions.php enqueue)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0b0f;
  --bg-2: #0f1117;
  --surface: #14161f;
  --surface-2: #1a1d29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f5;
  --muted: #9aa0af;
  --muted-2: #6b7180;
  --gold: #d8b25e;
  --gold-2: #f0d69a;
  --accent: #7c8cff;
  --accent-2: #a5b4ff;
  --green: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Sora", var(--font);
}

/* ---- Reset Storefront defaults toward ReNova ---- */
body,
body.woocommerce,
body.woocommerce-page {
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124, 140, 255, 0.12), transparent 60%),
              radial-gradient(1000px 700px at -10% 10%, rgba(216, 178, 94, 0.08), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--gold-2); }

.renova-container { width: min(var(--maxw), 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.grad {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 40%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons (also restyle Woo buttons) ---- */
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: #1a1406;
  box-shadow: 0 10px 30px -10px rgba(216, 178, 94, 0.6); text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(216, 178, 94, 0.75); color: #1a1406; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- Announcement ---- */
.renova-announce {
  background: linear-gradient(90deg, rgba(216,178,94,0.14), rgba(124,140,255,0.14));
  border-bottom: 1px solid var(--line);
  text-align: center; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); padding: 0.55rem 1rem;
}

/* ---- Header ---- */
.renova-header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(14px); background: rgba(10, 11, 15, 0.72);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.renova-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 11, 15, 0.9); }
.renova-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__mark { color: var(--gold); font-size: 1.1rem; }
.brand__name { background: linear-gradient(120deg, #fff, #c9cede); -webkit-background-clip: text; background-clip: text; color: transparent; }

.renova-nav { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.renova-nav a { font-size: 0.92rem; color: var(--muted); position: relative; transition: color 0.2s; }
.renova-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width 0.3s var(--ease); }
.renova-nav a:hover { color: var(--text); }
.renova-nav a:hover::after { width: 100%; }

.renova-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: var(--text); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); color: var(--text); }
.renova-cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
  background: var(--gold); color: #1a1406; border-radius: 999px;
}

/* ---- Hero ---- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.hero__sub { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: 2.5rem; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--display); font-size: 1.6rem; color: var(--text); }
.hero__stats span { font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }

.hero__visual { display: grid; place-items: center; }
.phone-card { position: relative; width: 260px; height: 520px; }
.phone-card__glow { position: absolute; inset: -40px; background: radial-gradient(closest-side, rgba(124,140,255,0.5), transparent 70%), radial-gradient(closest-side, rgba(216,178,94,0.4), transparent 70%); filter: blur(30px); animation: float 6s ease-in-out infinite; }
.phone-card__body { position: relative; height: 100%; border-radius: 44px; background: linear-gradient(160deg, #1c2030, #0c0e15); border: 1px solid var(--line-strong); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06); padding: 14px; animation: float 6s ease-in-out infinite; }
.phone-card__notch { width: 90px; height: 22px; background: #05060a; border-radius: 0 0 14px 14px; margin: 0 auto; }
.phone-card__screen { height: calc(100% - 22px); margin-top: 6px; border-radius: 32px; background: radial-gradient(120% 80% at 30% 10%, rgba(124,140,255,0.35), transparent 55%), radial-gradient(120% 80% at 80% 90%, rgba(216,178,94,0.3), transparent 55%), #0a0c14; display: grid; place-items: center; border: 1px solid var(--line); }
.phone-card__badge { font-family: var(--display); font-weight: 800; font-size: 3rem; background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; border: 2px solid var(--gold); border-radius: 20px; padding: 0.4rem 1.2rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---- Trust bar ---- */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.trust__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.trust__ic { color: var(--gold); font-size: 1rem; }

/* ---- Sections ---- */
.renova-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.renova-section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section__head--center { justify-content: center; text-align: center; }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature__ic { font-size: 1.8rem; color: var(--gold); margin-bottom: 0.9rem; }
.feature h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---- Reviews ---- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin: 0; }
.stars { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.review blockquote { font-size: 1rem; color: var(--text); margin: 0 0 1rem; border: 0; padding: 0; }
.review figcaption { font-size: 0.85rem; color: var(--muted-2); }

/* ---- CTA ---- */
.cta { padding: clamp(3rem, 6vw, 5rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(120deg, rgba(216,178,94,0.12), rgba(124,140,255,0.12)); border: 1px solid var(--line-strong); border-radius: 28px; padding: clamp(2rem, 5vw, 3rem); }
.cta h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; margin: 0; }
.cta p { color: var(--muted); margin: 0.4rem 0 0; }

/* ============================================================
   WooCommerce product grid -> ReNova cards
   ============================================================ */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem; margin: 0; padding: 0;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.woocommerce ul.products li.product a img {
  border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: radial-gradient(120% 120% at 30% 20%, rgba(124,140,255,0.18), transparent 55%), #0c0e16;
  border: 1px solid var(--line);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--text); padding: 0; margin: 0.15rem 0 0.5rem;
}
.woocommerce ul.products li.product .price {
  color: var(--gold-2) !important; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.9rem;
}
.woocommerce ul.products li.product .price del { color: var(--muted-2); font-weight: 400; font-size: 0.85rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: auto; }

.woocommerce span.onsale {
  background: rgba(74, 222, 128, 0.14); color: var(--green); border: 1px solid rgba(74,222,128,0.3);
  border-radius: 999px; min-height: auto; min-width: auto; padding: 0.3rem 0.7rem; font-weight: 700;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; top: 18px; left: 18px; margin: 0;
}

/* ---- ReNova custom loop card bits (content-product.php) ---- */
.woocommerce ul.products li.product .renova-card__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  background: radial-gradient(120% 120% at 30% 20%, rgba(124,140,255,0.18), transparent 55%),
              radial-gradient(120% 120% at 80% 90%, rgba(216,178,94,0.16), transparent 55%), #0c0e16;
  border: 1px solid var(--line); margin-bottom: 0.35rem; overflow: hidden;
}
.woocommerce ul.products li.product .renova-grade-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(216,178,94,0.14); color: var(--gold-2); border: 1px solid rgba(216,178,94,0.35);
}
.woocommerce ul.products li.product .renova-card__brand {
  display: block; font-size: 0.75rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.9rem;
}
.woocommerce ul.products li.product .renova-card__link { text-decoration: none; }

/* ---- Single product / PDP ---- */
.renova-pdp .product { display: grid; }
.woocommerce div.product .product_title { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--gold-2); font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface); border-color: var(--line); border-radius: 10px 10px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--surface-2); }
.woocommerce .quantity .qty {
  background: rgba(0,0,0,0.35); border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 0.6rem;
}
.renova-pdp-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.renova-pdp-badges .badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(216,178,94,0.14); color: var(--gold-2); border: 1px solid rgba(216,178,94,0.35);
}

/* ---- Woo notices / cart / checkout dark polish ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--surface) !important; border-top-color: var(--gold) !important; color: var(--text); border-radius: 12px;
}
.woocommerce table.shop_table, .woocommerce-cart table.cart, .woocommerce .cart-collaterals .cart_totals {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container .select2-selection {
  background: rgba(0,0,0,0.35); border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px;
}

/* ---- Footer ---- */
.renova-footer { border-top: 1px solid var(--line); padding-top: 3rem; margin-top: 2rem; background: transparent; }
.renova-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.renova-footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 34ch; }
.renova-footer__col h4 { font-family: var(--display); font-size: 0.95rem; margin-bottom: 0.9rem; }
.renova-footer__col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.25rem 0; transition: color 0.2s; }
.renova-footer__col a:hover { color: var(--text); }
.renova-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: 0.82rem; color: var(--muted-2); }

/* ---- Base layout (standalone) ---- */
.renova-main { min-height: 40vh; }
.renova-page { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.renova-page .renova-page__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.renova-page__content { max-width: 72ch; }
.renova-page__content h2 { font-family: var(--display); margin: 1.6rem 0 0.6rem; }
.renova-page__content p { color: var(--muted); margin-bottom: 1rem; }
.renova-page__content a { color: var(--gold-2); }
.post-thumb { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.renova-404 { text-align: center; padding: clamp(3rem,8vw,6rem) 0; }
.renova-404 h1 { font-family: var(--display); font-size: clamp(3rem,10vw,6rem); }
.wp-block-search__button, .wp-block-button__link { border-radius: 999px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .phone-card { transform: scale(0.85); }
  .renova-nav { display: none; }
  .renova-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero__stats { gap: 1.5rem; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .renova-footer__inner { grid-template-columns: 1fr; }
}
