/*
Theme Name: Copper Pipes
Theme URI: https://copper-pipes.com
Author: copper-pipes.com
Author URI: https://copper-pipes.com
Description: Official theme for copper-pipes.com — international copper pipe trade directory, price index, scrap dealer finder, guides and blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: copper-pipes
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, elementor, woocommerce
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cp-blue:        #1d4ed8;
  --cp-blue-dark:   #1e3a8a;
  --cp-blue-mid:    #3b82f6;
  --cp-teal:        #0891b2;
  --cp-navy:        #0f172a;
  --cp-text:        #1e293b;
  --cp-muted:       #64748b;
  --cp-border:      #e2e8f0;
  --cp-bg:          #f1f5f9;
  --cp-white:       #ffffff;
  --cp-green:       #16a34a;
  --cp-red:         #dc2626;
  --cp-radius:      10px;
  --cp-radius-lg:   16px;
  --cp-shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --cp-shadow-lg:   0 10px 25px rgba(0,0,0,.1);
  --cp-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cp-transition:  all .2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--cp-font);
  color: var(--cp-text);
  background: var(--cp-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cp-blue); text-decoration: none; transition: var(--cp-transition); }
a:hover { color: var(--cp-blue-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--cp-text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.cp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cp-section {
  padding: 4rem 0;
}

.cp-section--sm {
  padding: 2rem 0;
}

.cp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cp-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================================
   CURRENCY BAR
   ============================================================ */
.cp-currency-bar {
  background: var(--cp-navy);
  padding: .45rem 0;
  font-size: .78rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cp-currency-bar__inner {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.cp-currency-bar__label {
  color: rgba(255,255,255,.4);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: .25rem;
}

.cp-currency-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  border-radius: 4px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cp-transition);
  font-family: var(--cp-font);
}

.cp-currency-btn:hover,
.cp-currency-btn.active {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.cp-header {
  background: var(--cp-white);
  border-bottom: 1px solid var(--cp-border);
  position: sticky;
  top: 36px;
  z-index: 999;
  box-shadow: var(--cp-shadow);
}

.cp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.cp-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cp-text);
  text-decoration: none;
  flex-shrink: 0;
}

.cp-logo svg { width: 28px; height: 28px; }
.cp-logo span { color: var(--cp-blue); }

/* WordPress nav menu */
.cp-nav { display: flex; align-items: center; }

.cp-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-nav ul li a {
  display: block;
  padding: .45rem .75rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--cp-muted);
  border-radius: 6px;
  transition: var(--cp-transition);
  white-space: nowrap;
}

.cp-nav ul li a:hover,
.cp-nav ul li.current-menu-item > a,
.cp-nav ul li.current_page_item > a {
  color: var(--cp-blue);
  background: rgba(29,78,216,.06);
}

.cp-nav ul li.menu-item-has-children { position: relative; }

.cp-nav ul li.menu-item-has-children > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-lg);
  min-width: 200px;
  padding: .5rem;
  flex-direction: column;
  gap: 0;
}

.cp-nav ul li.menu-item-has-children:hover > ul { display: flex; }

.cp-header__cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Mobile hamburger */
.cp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}

.cp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cp-text);
  border-radius: 2px;
  transition: var(--cp-transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cp-transition);
  border: none;
  font-family: var(--cp-font);
  text-decoration: none;
  white-space: nowrap;
}

.cp-btn--primary {
  background: var(--cp-blue);
  color: #fff;
}
.cp-btn--primary:hover { background: var(--cp-blue-dark); color: #fff; }

.cp-btn--outline {
  background: transparent;
  color: var(--cp-blue);
  border: 1.5px solid var(--cp-blue);
}
.cp-btn--outline:hover { background: var(--cp-blue); color: #fff; }

.cp-btn--sm { padding: .4rem .85rem; font-size: .78rem; }
.cp-btn--lg { padding: .85rem 1.75rem; font-size: .95rem; }

/* ============================================================
   CARDS
   ============================================================ */
.cp-card {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  overflow: hidden;
  transition: var(--cp-transition);
}

.cp-card:hover {
  box-shadow: var(--cp-shadow-lg);
  transform: translateY(-2px);
}

.cp-card__body { padding: 1.25rem; }
.cp-card__footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--cp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.cp-hero {
  background: var(--cp-blue-dark);
  padding: 5rem 0 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,216,.3) 0%, transparent 60%);
  pointer-events: none;
}

.cp-hero__eyebrow {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}

.cp-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cp-hero__title span { color: #93c5fd; }

.cp-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 2rem;
}

.cp-hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.cp-hero__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.cp-hero__stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: .1rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.cp-page-hero {
  background: var(--cp-blue-dark);
  padding: 3rem 0 2.5rem;
  color: #fff;
}

.cp-page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: .5rem; }
.cp-page-hero p { color: rgba(255,255,255,.65); max-width: 580px; }

.cp-breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}

.cp-breadcrumb a { color: rgba(255,255,255,.6); }
.cp-breadcrumb a:hover { color: #fff; }

/* ============================================================
   BANNER / AD SLOTS
   ============================================================ */
.cp-banner-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.cp-banner-slot__label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cp-muted);
  margin-bottom: .35rem;
}

.cp-banner-slot__inner {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cp-banner-slot__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-banner-slot__inner--970 { height: 90px; max-width: 970px; }
.cp-banner-slot__inner--728 { height: 90px; max-width: 728px; }
.cp-banner-slot__inner--468 { height: 60px; max-width: 468px; }
.cp-banner-slot__inner--336 { height: 280px; max-width: 336px; }
.cp-banner-slot__inner--300 { height: 250px; max-width: 300px; }
.cp-banner-slot__inner--160 { height: 600px; max-width: 160px; }

.cp-banner-slot__timer {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: .6rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: .1rem .3rem;
  border-radius: 3px;
  font-weight: 600;
}

/* ============================================================
   PRICE TABLE
   ============================================================ */
.cp-price-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cp-price-table th {
  background: var(--cp-blue-dark);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cp-price-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--cp-border);
}
.cp-price-table tr:hover td { background: var(--cp-bg); }
.cp-price-table .cp-price-up { color: var(--cp-green); font-weight: 600; }
.cp-price-table .cp-price-dn { color: var(--cp-red); font-weight: 600; }

.cp-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cp-tab {
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--cp-border);
  background: transparent;
  color: var(--cp-muted);
  font-family: var(--cp-font);
  transition: var(--cp-transition);
}
.cp-tab.active, .cp-tab:hover {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

/* ============================================================
   DIRECTORY
   ============================================================ */
.cp-dir-search {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cp-dir-search input,
.cp-dir-search select {
  flex: 1;
  min-width: 160px;
  padding: .6rem .9rem;
  border: 1.5px solid var(--cp-border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--cp-font);
  color: var(--cp-text);
  background: var(--cp-white);
  transition: var(--cp-transition);
}

.cp-dir-search input:focus,
.cp-dir-search select:focus {
  outline: none;
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.cp-listing-card {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.25rem;
  transition: var(--cp-transition);
  position: relative;
}

.cp-listing-card:hover { box-shadow: var(--cp-shadow-lg); transform: translateY(-2px); }

.cp-listing-card--featured {
  border-color: var(--cp-blue);
  border-width: 2px;
}

.cp-listing-card--featured::before {
  content: 'Featured';
  position: absolute;
  top: -1px;
  right: 1rem;
  background: var(--cp-blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cp-listing-badge {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cp-listing-badge--blue { background: rgba(29,78,216,.1); color: var(--cp-blue); }
.cp-listing-badge--green { background: rgba(22,163,74,.1); color: var(--cp-green); }
.cp-listing-badge--teal { background: rgba(8,145,178,.1); color: var(--cp-teal); }

.cp-distance-badge {
  font-size: .72rem;
  font-weight: 600;
  color: var(--cp-blue);
  background: rgba(29,78,216,.08);
  padding: .15rem .5rem;
  border-radius: 4px;
}

/* ============================================================
   SCRAP SECTION
   ============================================================ */
.cp-scrap-price-bar {
  background: var(--cp-blue-dark);
  color: #fff;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.cp-scrap-grades {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cp-scrap-grade {
  text-align: center;
}

.cp-scrap-grade__name {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cp-scrap-grade__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.cp-country-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cp-country-tab {
  padding: .4rem .85rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--cp-border);
  background: transparent;
  color: var(--cp-muted);
  font-family: var(--cp-font);
  transition: var(--cp-transition);
}

.cp-country-tab.active, .cp-country-tab:hover {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.cp-calc-wrap {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 2rem;
}

.cp-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cp-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cp-muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cp-form-group input,
.cp-form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--cp-border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--cp-font);
  color: var(--cp-text);
  background: var(--cp-white);
  transition: var(--cp-transition);
}

.cp-form-group input:focus,
.cp-form-group select:focus {
  outline: none;
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.cp-calc-result {
  background: var(--cp-blue-dark);
  color: #fff;
  border-radius: var(--cp-radius);
  padding: 1.5rem;
  text-align: center;
}

.cp-calc-result__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.cp-calc-result__label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
}

/* ============================================================
   BLOG / NEWS
   ============================================================ */
.cp-post-card {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  overflow: hidden;
  transition: var(--cp-transition);
  display: flex;
  flex-direction: column;
}

.cp-post-card:hover { box-shadow: var(--cp-shadow-lg); transform: translateY(-2px); }

.cp-post-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--cp-blue-dark), var(--cp-teal));
  position: relative;
  overflow: hidden;
}

.cp-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.cp-post-card__meta { font-size: .75rem; color: var(--cp-muted); margin-bottom: .5rem; }
.cp-post-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.cp-post-card__excerpt { font-size: .85rem; color: var(--cp-muted); flex: 1; }

.cp-post-cat {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  background: rgba(29,78,216,.1);
  color: var(--cp-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.cp-sidebar-widget {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.cp-sidebar-widget__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cp-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--cp-border);
}

.cp-sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--cp-border);
  color: var(--cp-text);
  font-size: .84rem;
  transition: var(--cp-transition);
}

.cp-sidebar-link:last-child { border-bottom: none; }
.cp-sidebar-link:hover { color: var(--cp-blue); }

.cp-sidebar-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--cp-muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.cp-sidebar-link:hover svg { stroke: var(--cp-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.cp-footer {
  background: var(--cp-navy);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}

.cp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cp-footer__brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .75rem; }
.cp-footer__tagline { font-size: .83rem; color: rgba(255,255,255,.45); line-height: 1.6; }

.cp-footer__heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.cp-footer ul { list-style: none; padding: 0; }
.cp-footer ul li { margin-bottom: .5rem; }
.cp-footer ul li a { font-size: .83rem; color: rgba(255,255,255,.55); transition: var(--cp-transition); }
.cp-footer ul li a:hover { color: #fff; }

.cp-footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .75rem;
}

/* ============================================================
   PRICE TICKER
   ============================================================ */
.cp-price-ticker {
  background: var(--cp-blue-dark);
  color: #fff;
  padding: .55rem 0;
  font-size: .82rem;
  overflow: hidden;
}

.cp-price-ticker__inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.cp-price-ticker__item { display: flex; align-items: center; gap: .4rem; }
.cp-price-ticker__item strong { color: #fff; }
.cp-price-ticker__up { color: #4ade80; font-weight: 600; }
.cp-price-ticker__dn { color: #f87171; font-weight: 600; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.cp-stat-strip {
  background: var(--cp-bg);
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
  padding: 1.5rem 0;
}

.cp-stat-strip__inner {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.cp-stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: .75rem 1rem;
  border-right: 1px solid var(--cp-border);
}

.cp-stat-item:last-child { border-right: none; }
.cp-stat-item__value { font-size: 1.6rem; font-weight: 800; color: var(--cp-blue); }
.cp-stat-item__label { font-size: .75rem; color: var(--cp-muted); margin-top: .15rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.cp-newsletter {
  background: linear-gradient(135deg, var(--cp-blue-dark), var(--cp-teal));
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}

.cp-newsletter h2 { color: #fff; font-size: 1.6rem; margin-bottom: .5rem; }
.cp-newsletter p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }

.cp-newsletter__form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cp-newsletter__form input {
  flex: 1;
  min-width: 200px;
  padding: .7rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: .9rem;
  font-family: var(--cp-font);
}

/* ============================================================
   ADVERTISE PAGE
   ============================================================ */
.cp-ad-package-card {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.5rem;
  transition: var(--cp-transition);
  position: relative;
}

.cp-ad-package-card:hover { box-shadow: var(--cp-shadow-lg); transform: translateY(-2px); }

.cp-ad-package-card--featured {
  border-color: var(--cp-blue);
  border-width: 2px;
}

.cp-ad-package-card--featured::before {
  content: 'Best Value';
  position: absolute;
  top: -1px;
  right: 1rem;
  background: var(--cp-blue);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
}

.cp-ad-price { font-size: 1.75rem; font-weight: 800; color: var(--cp-blue); }
.cp-ad-price span { font-size: .85rem; font-weight: 500; color: var(--cp-muted); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce .button,
.woocommerce button.button {
  background: var(--cp-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-family: var(--cp-font) !important;
  font-weight: 600 !important;
  transition: var(--cp-transition) !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--cp-blue-dark) !important;
  color: #fff !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cp-muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--cp-blue);
  color: #fff;
}

/* ============================================================
   BANNER ADMIN DASHBOARD
   ============================================================ */
.cp-banner-admin-wrap { font-family: var(--cp-font); }

.cp-banner-slot-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cp-banner-slot-row__id {
  font-family: monospace;
  font-size: .78rem;
  background: #f1f5f9;
  padding: .2rem .5rem;
  border-radius: 4px;
  color: #475569;
  min-width: 200px;
}

.cp-banner-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.cp-banner-status--active { background: #dcfce7; color: #16a34a; }
.cp-banner-status--expiring { background: #fef9c3; color: #ca8a04; }
.cp-banner-status--empty { background: #f1f5f9; color: #64748b; }
.cp-banner-status--expired { background: #fee2e2; color: #dc2626; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cp-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cp-grid-2, .cp-grid-3, .cp-grid-4 { grid-template-columns: 1fr; }
  .cp-nav { display: none; }
  .cp-nav.cp-nav--open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--cp-border); padding: 1rem; box-shadow: var(--cp-shadow-lg); z-index: 1000; }
  .cp-nav.cp-nav--open ul { flex-direction: column; width: 100%; }
  .cp-hamburger { display: flex; }
  .cp-hero { padding: 3rem 0 2.5rem; }
  .cp-hero__title { font-size: 1.75rem; }
  .cp-footer__grid { grid-template-columns: 1fr; }
  .cp-calc-grid { grid-template-columns: 1fr; }
  .cp-banner-slot__inner--970,
  .cp-banner-slot__inner--728 { height: 60px; }
  .cp-banner-slot__inner--160 { height: 250px; max-width: 300px; }
}

@media (max-width: 480px) {
  .cp-hero__stats { gap: 1.5rem; }
  .cp-stat-item { min-width: 50%; }
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-section .cp-container { max-width: 100%; padding: 0; }
.e-con-inner .cp-container { max-width: 100%; padding: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.cp-text-center { text-align: center; }
.cp-text-muted { color: var(--cp-muted); }
.cp-mt-1 { margin-top: .5rem; }
.cp-mt-2 { margin-top: 1rem; }
.cp-mt-3 { margin-top: 1.5rem; }
.cp-mb-1 { margin-bottom: .5rem; }
.cp-mb-2 { margin-bottom: 1rem; }
.cp-mb-3 { margin-bottom: 1.5rem; }
.cp-hidden { display: none !important; }
.cp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cp-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 3rem;
  align-items: center;
}

.cp-hero-price-row,
.cp-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .cp-header {
    top: auto;
  }

  .cp-header__inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: .75rem 0;
  }

  .cp-header__cta {
    display: none;
  }

  .cp-logo {
    min-width: 0;
  }

  .cp-logo span {
    font-size: .98rem;
    overflow-wrap: anywhere;
  }

  .cp-nav.cp-nav--open {
    top: 100%;
  }

  .cp-nav.cp-nav--open ul li,
  .cp-nav.cp-nav--open ul li a {
    width: 100%;
  }

  .cp-nav ul li.menu-item-has-children:hover > ul {
    display: none;
  }

  .cp-nav.cp-nav--open ul li.menu-item-has-children > ul {
    display: flex;
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--cp-border);
    border-radius: 0;
    padding: .5rem 0 0;
    margin-top: .25rem;
  }

  .cp-hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cp-section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cp-hero-price-row {
    flex-wrap: wrap;
  }

  .cp-calc-wrap {
    padding: 1.25rem;
  }

  .cp-newsletter__form input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cp-container {
    padding: 0 1rem;
  }

  .cp-section {
    padding: 3rem 0;
  }

  .cp-hero__title {
    font-size: 1.55rem;
  }

  .cp-currency-bar__inner {
    justify-content: center;
  }

  .cp-currency-bar__label {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  .cp-btn {
    width: 100%;
    justify-content: center;
  }

  .cp-btn--sm {
    width: auto;
  }

  .cp-stat-item {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--cp-border);
  }

  .cp-stat-item:last-child {
    border-bottom: none;
  }
}

.cp-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.cp-nav ul {
  min-width: 0;
}

@media (max-width: 1440px) {
  .cp-header__inner {
    gap: 1rem;
  }

  .cp-nav ul li a {
    padding: .45rem .55rem;
    font-size: .78rem;
  }

  .cp-header__cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .cp-nav {
    display: none;
  }

  .cp-nav.cp-nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--cp-border);
    padding: 1rem;
    box-shadow: var(--cp-shadow-lg);
    z-index: 1000;
  }

  .cp-nav.cp-nav--open ul {
    flex-direction: column;
    width: 100%;
  }

  .cp-nav.cp-nav--open ul li,
  .cp-nav.cp-nav--open ul li a {
    width: 100%;
  }

  .cp-hamburger {
    display: flex;
  }

  .cp-header__cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .cp-header__inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: .75rem 0;
  }

  .cp-nav.cp-nav--open {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    order: 4;
    width: 100%;
    margin-top: .5rem;
  }
}

@media (max-width: 768px) {
  .cp-nav.cp-nav--open {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    order: 4;
    width: 100%;
    margin-top: .5rem;
  }
}

.cp-header__cta {
  display: none;
}
