/*
Theme Name: Claristina Porto Inspired
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Premium WooCommerce-ready WordPress theme inspired by enterprise marketplace layouts, with a built-in options panel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: claristina-porto
*/

:root {
  --cp-primary: #1f3c88;
  --cp-secondary: #f7f7f9;
  --cp-accent: #ffcc4d;
  --cp-text: #222;
  --cp-muted: #666;
  --cp-border: #e6e7eb;
  --cp-success: #36a56d;
  --cp-shadow: 0 10px 30px rgba(20, 28, 45, 0.08);
  --cp-radius: 14px;
  --cp-container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cp-text);
  background: #fff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.cp-container { max-width: var(--cp-container); margin: 0 auto; padding: 0 20px; }
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; transition: .2s ease;
}
.cp-btn--primary { background: var(--cp-primary); color: #fff; }
.cp-btn--primary:hover { transform: translateY(-1px); box-shadow: var(--cp-shadow); }
.cp-btn--light { background: #fff; color: var(--cp-primary); border: 1px solid var(--cp-border); }
.cp-topbar {
  background: #0f1f47; color: #fff; font-size: 13px;
}
.cp-topbar__inner, .cp-header__inner, .cp-mega__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.cp-topbar__inner { min-height: 42px; gap: 20px; }
.cp-header { border-bottom: 1px solid var(--cp-border); background: #fff; position: sticky; top: 0; z-index: 30; }
.cp-header__inner { min-height: 88px; gap: 24px; }
.cp-brand { font-size: 30px; font-weight: 800; color: var(--cp-primary); letter-spacing: -.03em; }
.cp-search { flex: 1; display: flex; max-width: 620px; }
.cp-search input {
  flex: 1; padding: 14px 18px; border: 2px solid var(--cp-primary); border-right: 0; border-radius: 999px 0 0 999px; outline: 0;
}
.cp-search button {
  border: 0; background: var(--cp-primary); color: #fff; padding: 0 22px; border-radius: 0 999px 999px 0; font-weight: 700;
}
.cp-header__actions { display: flex; align-items: center; gap: 18px; }
.cp-header__actions a { font-size: 14px; color: var(--cp-muted); }
.cp-mega { background: #fff; border-bottom: 1px solid var(--cp-border); }
.cp-mega__inner { min-height: 56px; gap: 24px; }
.cp-category-toggle {
  background: var(--cp-primary); color: #fff; padding: 16px 18px; border-radius: 10px 10px 0 0; font-weight: 700; min-width: 280px;
}
.cp-nav { display: flex; gap: 26px; font-weight: 700; flex-wrap: wrap; }
.cp-nav a:hover { color: var(--cp-primary); }
.cp-hero {
  background: linear-gradient(120deg, #eef3ff 0%, #f9fbff 45%, #ffffff 100%);
  padding: 36px 0 20px;
}
.cp-hero__grid {
  display: grid; grid-template-columns: 280px 1.3fr .9fr; gap: 24px; align-items: stretch;
}
.cp-card, .cp-category-list, .cp-feature-strip__item, .cp-product, .cp-banner, .cp-sidebar-box {
  background: #fff; border: 1px solid var(--cp-border); border-radius: var(--cp-radius); box-shadow: var(--cp-shadow);
}
.cp-category-list { padding: 18px; }
.cp-category-list h4 { margin: 0 0 12px; font-size: 16px; }
.cp-category-list ul { list-style: none; margin: 0; padding: 0; }
.cp-category-list li { padding: 11px 0; border-bottom: 1px solid var(--cp-border); color: var(--cp-muted); }
.cp-category-list li:last-child { border-bottom: 0; }
.cp-main-banner {
  padding: 40px; background: linear-gradient(135deg, #16387a, #1f3c88 55%, #2c58c6); color: #fff; position: relative; overflow: hidden;
}
.cp-main-banner:before, .cp-main-banner:after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.cp-main-banner:before { width: 240px; height: 240px; right: -60px; top: -40px; }
.cp-main-banner:after { width: 160px; height: 160px; bottom: -50px; left: -30px; }
.cp-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-bottom: 12px; }
.cp-main-banner h1 { font-size: 48px; line-height: 1.05; margin: 0 0 16px; letter-spacing: -.04em; max-width: 540px; }
.cp-main-banner p { font-size: 17px; margin: 0 0 24px; max-width: 560px; color: rgba(255,255,255,.88); }
.cp-promo-stack { display: grid; gap: 18px; }
.cp-promo-card { padding: 26px; min-height: 200px; }
.cp-promo-card h3 { margin: 0 0 8px; font-size: 24px; }
.cp-promo-card p { margin: 0 0 14px; color: var(--cp-muted); }
.cp-feature-strip { padding: 26px 0 10px; }
.cp-feature-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cp-feature-strip__item { padding: 20px; }
.cp-feature-strip__item strong { display: block; margin-bottom: 8px; }
.cp-section { padding: 42px 0; }
.cp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.cp-section__head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.cp-section__head p { margin: 6px 0 0; color: var(--cp-muted); }
.cp-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cp-product { padding: 18px; position: relative; }
.cp-badge {
  position: absolute; top: 14px; left: 14px; background: #ff6a3d; color: #fff; font-size: 12px;
  font-weight: 700; border-radius: 999px; padding: 6px 10px;
}
.cp-product__thumb { aspect-ratio: 1 / 1; background: #f3f5f9; border-radius: 12px; margin-bottom: 14px; }
.cp-product__category { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--cp-muted); }
.cp-product h3 { margin: 10px 0 10px; font-size: 18px; min-height: 48px; }
.cp-price { font-size: 24px; font-weight: 800; color: var(--cp-primary); }
.cp-price small { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; }
.cp-product__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.cp-banner-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.cp-banner { padding: 34px; min-height: 260px; background: linear-gradient(135deg, #fff6ea, #fff); }
.cp-banner--dark { color: #fff; background: linear-gradient(135deg, #111c39, #213772); }
.cp-footer { background: #101827; color: rgba(255,255,255,.82); margin-top: 30px; }
.cp-footer__top { padding: 54px 0 34px; display: grid; grid-template-columns: 1.2fr repeat(3, .8fr); gap: 26px; }
.cp-footer h4 { color: #fff; margin: 0 0 14px; }
.cp-footer ul { list-style: none; padding: 0; margin: 0; }
.cp-footer li { margin: 10px 0; }
.cp-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 14px; }
.cp-admin-note {
  background: #f6f8fc; border: 1px dashed #c8d2ea; border-radius: 12px; padding: 18px; color: #43506d;
}
@media (max-width: 1200px) {
  .cp-hero__grid { grid-template-columns: 1fr; }
  .cp-product-grid, .cp-feature-strip__grid, .cp-banner-grid, .cp-footer__top { grid-template-columns: repeat(2, 1fr); }
  .cp-category-toggle { min-width: auto; }
}
@media (max-width: 820px) {
  .cp-header__inner, .cp-topbar__inner, .cp-mega__inner, .cp-section__head { flex-direction: column; align-items: stretch; }
  .cp-product-grid, .cp-feature-strip__grid, .cp-banner-grid, .cp-footer__top { grid-template-columns: 1fr; }
  .cp-main-banner h1 { font-size: 38px; }
}
