/*
Theme Name: CC Shop Theme
Theme URI: https://example.com/
Author: Codex
Description: A clean WooCommerce-ready storefront theme inspired by modern age-gated catalog shops.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cc-shop-theme
*/

:root {
  --cc-ink: #08131d;
  --cc-muted: #65707c;
  --cc-line: #e6e9ed;
  --cc-soft: #f5f7f8;
  --cc-panel: #ffffff;
  --cc-accent: #ef6b45;
  --cc-accent-dark: #d65331;
  --cc-green: #6aa46f;
  --cc-gold: #d9b36b;
  --cc-radius: 8px;
  --cc-shadow: 0 14px 40px rgba(8, 19, 29, 0.08);
  --cc-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--cc-ink);
  background: #fff;
  font-family: var(--cc-font, Inter, ui-sans-serif, system-ui, sans-serif);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.cc-container {
  width: min(var(--cc-width), calc(100% - 32px));
  margin: 0 auto;
}

.cc-topbar {
  background: var(--cc-ink);
  color: #fff;
  font-size: 13px;
}

.cc-topbar__inner {
  min-height: 38px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cc-topbar__items {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-topbar__item {
  color: rgba(255, 255, 255, 0.82);
}

.cc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--cc-line);
  backdrop-filter: blur(10px);
}

.cc-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.cc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
  font-size: 21px;
}

.cc-logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cc-ink);
  border-radius: 50%;
  color: var(--cc-accent);
  font-weight: 900;
}

.cc-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
}

.cc-nav a {
  color: #27323e;
}

.cc-nav a:hover {
  color: var(--cc-accent);
}

.cc-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.cc-icon-button,
.cc-menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: #fff;
  color: var(--cc-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cc-menu-toggle {
  display: none;
}

.cc-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.cc-button:hover,
.button:hover {
  background: var(--cc-accent-dark);
  transform: translateY(-1px);
}

.cc-button--ghost {
  background: #fff;
  color: var(--cc-ink);
  border: 1px solid var(--cc-line);
}

.cc-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 19, 29, 0.92), rgba(8, 19, 29, 0.54) 48%, rgba(8, 19, 29, 0.08)),
    url("assets/img/lab-shelf.svg") center right / cover no-repeat;
  color: #fff;
}

.cc-hero__content {
  width: min(640px, 100%);
  padding: 76px 0 92px;
}

.cc-kicker {
  color: var(--cc-gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

.cc-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.cc-hero p {
  width: min(560px, 100%);
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.cc-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-section {
  padding: 58px 0;
}

.cc-section--soft {
  background: var(--cc-soft);
}

.cc-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.cc-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.cc-section__head p {
  margin: 8px 0 0;
  color: var(--cc-muted);
}

.cc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cc-category {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cc-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow);
}

.cc-category__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef5ef;
  color: var(--cc-green);
  font-weight: 900;
}

.cc-category h3 {
  margin: 18px 0 4px;
  font-size: 18px;
}

.cc-category p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 14px;
}

.cc-product-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
}

.cc-product,
.woocommerce ul.products li.product {
  list-style: none;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cc-product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow);
}

.cc-product__media,
.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f4f6f7, #e9eef1);
}

.cc-product__body,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  padding-left: 16px;
  padding-right: 16px;
}

.cc-product__body {
  padding: 16px;
}

.cc-product__tag {
  color: var(--cc-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cc-product h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}

.cc-product__meta {
  color: var(--cc-muted);
  font-size: 13px;
}

.cc-price,
.woocommerce ul.products li.product .price {
  display: block;
  margin-top: 14px;
  color: var(--cc-ink);
  font-weight: 850;
}

.cc-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cc-trust__item {
  padding: 24px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: #fff;
}

.cc-trust__item h3 {
  margin: 0 0 8px;
}

.cc-trust__item p {
  margin: 0;
  color: var(--cc-muted);
}

.cc-footer {
  padding: 44px 0;
  background: var(--cc-ink);
  color: #fff;
}

.cc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.cc-footer h2,
.cc-footer h3 {
  margin-top: 0;
}

.cc-footer p,
.cc-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.cc-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cc-footer li + li {
  margin-top: 8px;
}

.cc-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(7px);
}

.cc-age-gate.is-visible {
  display: grid;
}

.cc-age-gate[hidden],
.cc-age-gate.is-closed {
  display: none;
}

.cc-age-gate__box {
  width: min(460px, 100%);
  padding: 44px;
  text-align: center;
  background: #06121d;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.cc-age-gate__box h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.cc-age-gate__line {
  width: 74px;
  height: 2px;
  background: var(--cc-accent);
  margin: 22px auto;
}

.cc-age-gate__box p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.72);
}

.cc-age-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .cc-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .cc-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 18px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--cc-line);
    flex-direction: column;
    align-items: start;
  }

  .cc-nav.is-open {
    display: flex;
  }

  .cc-menu-toggle {
    display: grid;
  }

  .cc-category-grid,
  .cc-product-grid,
  .woocommerce ul.products,
  .cc-trust,
  .cc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cc-topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .cc-topbar__items {
    justify-content: center;
    gap: 10px;
  }

  .cc-header__actions .cc-icon-button {
    display: none;
  }

  .cc-hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(8, 19, 29, 0.92), rgba(8, 19, 29, 0.58)),
      url("assets/img/lab-shelf.svg") center / cover no-repeat;
  }

  .cc-hero h1 {
    font-size: 44px;
  }

  .cc-section__head {
    display: block;
  }

  .cc-category-grid,
  .cc-product-grid,
  .woocommerce ul.products,
  .cc-trust,
  .cc-footer__grid {
    grid-template-columns: 1fr;
  }

  .cc-age-gate__box {
    padding: 34px 22px;
  }
}
