/*
Theme Name: Art Cambunny V5
Theme URI: https://art.cambunny.co.uk
Author: Snipe Group Limited
Author URI: https://www.auctionit.vip/
Description: CamBunny-matched WordPress + WooCommerce theme for art.cambunny.co.uk — left nav, centre feed, right suggestions.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: art-cambunny-v5
*/

:root {
  --cb-pink: #e91e8c;
  --cb-pink-dark: #c41775;
  --cb-pink-soft: #fce4f3;
  --cb-pink-active: rgba(233, 30, 140, 0.12);
  --cb-white: #ffffff;
  --cb-bg: #ffffff;
  --cb-border: #efefef;
  --cb-text: #1a1a1a;
  --cb-muted: #6b6b6b;
  --cb-nav-w: 260px;
  --cb-aside-w: 320px;
  --cb-radius: 16px;
  --cb-radius-pill: 999px;
  --cb-font: "Figtree", "Segoe UI", sans-serif;
  --cb-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.cb-body {
  margin: 0;
  font-family: var(--cb-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--cb-text);
  background: var(--cb-bg);
}

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

a {
  color: var(--cb-pink);
  text-decoration: none;
}

a:hover {
  color: var(--cb-pink-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Shell */

.cb-app {
  display: grid;
  grid-template-columns: var(--cb-nav-w) minmax(0, 1fr);
  min-height: 100vh;
}

.cb-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cb-aside-w);
  min-width: 0;
  border-left: 1px solid var(--cb-border);
}

.cb-feed {
  min-width: 0;
  padding: 1.25rem 1.5rem 3rem;
  border-right: 1px solid var(--cb-border);
}

.cb-aside {
  padding: 1.25rem 1rem 3rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow: auto;
}

/* Left nav */

.cb-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--cb-white);
  overflow: auto;
  z-index: 40;
}

.cb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  padding: 0.25rem 0.5rem;
}

.cb-brand:hover {
  color: inherit;
}

.cb-brand__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cb-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cb-brand__name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-brand__handle {
  font-size: 0.8rem;
  color: var(--cb-muted);
}

.cb-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cb-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--cb-radius-pill);
  color: var(--cb-text);
  font-weight: 500;
  position: relative;
}

.cb-nav__link ion-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
}

.cb-nav__link:hover {
  background: var(--cb-pink-active);
  color: var(--cb-pink);
}

.cb-nav__link.is-active {
  background: var(--cb-pink-active);
  color: var(--cb-pink);
  font-weight: 700;
}

.cb-nav__badge {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: var(--cb-radius-pill);
  background: var(--cb-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-nav__sub {
  list-style: none;
  margin: 0.15rem 0 0.35rem 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cb-nav__link--child {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.cb-nav__link--child ion-icon {
  font-size: 1.1rem;
}

.cb-nav__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem;
}

.cb-nav__actions .cb-btn {
  width: 100%;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--cb-radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cb-btn--primary {
  background: var(--cb-pink);
  color: #fff !important;
  border-color: var(--cb-pink);
}

.cb-btn--primary:hover {
  background: var(--cb-pink-dark);
  border-color: var(--cb-pink-dark);
  color: #fff !important;
}

.cb-btn--outline {
  background: #fff;
  color: var(--cb-pink) !important;
  border-color: var(--cb-pink);
}

.cb-btn--outline:hover {
  background: var(--cb-pink-soft);
}

.cb-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.cb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff253a;
  box-shadow: 0 0 0 3px rgba(255, 37, 58, 0.2);
}

/* Mobile top bar — hidden on desktop */
.cb-mobile-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--cb-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .cb-mobile-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .cb-mobile-bar {
    top: 46px;
  }
}

.cb-mobile-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cb-text);
  font-weight: 700;
  min-width: 0;
}

.cb-mobile-bar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cb-mobile-bar__brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-pill);
  background: #fff;
  color: var(--cb-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}

.cb-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.cb-nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cb-text);
  border-radius: 1px;
}

.cb-nav-toggle__label {
  line-height: 1;
}

.cb-nav-backdrop {
  display: none;
}

body.cb-nav-open {
  overflow: hidden;
}

/* Search + suggestions */

.cb-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-pill);
  background: #f7f7f7;
  margin-bottom: 1.25rem;
}

.cb-search ion-icon {
  font-size: 1.1rem;
  color: var(--cb-muted);
}

.cb-search input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  outline: none;
}

.cb-suggestions {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 0.85rem;
  background: #fff;
}

.cb-suggestions__header {
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.cb-suggestions__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cb-suggestions__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cb-suggest {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 110px;
  background: #1a1a1a;
  color: #fff !important;
}

.cb-suggest__bg {
  width: 100%;
  height: 110px;
  object-fit: cover;
  opacity: 0.75;
}

.cb-suggest__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.cb-suggest__name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-suggest__price {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.cb-suggest--cta {
  min-height: 72px;
  background: linear-gradient(135deg, #e91e8c, #9b1b6e);
}

.cb-suggest--cta .cb-suggest__meta {
  position: static;
  background: none;
  padding: 1rem;
}

/* Homepage feed */

.cb-hero {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--cb-border);
  margin-bottom: 1.5rem;
}

.cb-hero__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.cb-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cb-hero__text {
  margin: 0 0 1.25rem;
  color: var(--cb-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cb-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cb-mode {
  display: block;
  padding: 1.1rem 1rem;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-mode:hover {
  border-color: var(--cb-pink);
  box-shadow: var(--cb-shadow);
  color: inherit;
}

.cb-mode h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--cb-pink);
}

.cb-mode p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cb-muted);
}

.cb-feed-section {
  margin-bottom: 2.5rem;
}

.cb-feed-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cb-border);
}

.cb-feed-section__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cb-product-grid {
  display: flex;
  flex-direction: column;
}

.cb-post {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cb-border);
}

.cb-post__media {
  display: block;
  border-radius: var(--cb-radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #f5f5f5;
}

.cb-post__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cb-post__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.cb-post__title a {
  color: var(--cb-text);
}

.cb-post__title a:hover {
  color: var(--cb-pink);
}

.cb-post__price {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--cb-pink);
}

/* Footer */

.cb-footer {
  border-top: 1px solid var(--cb-border);
  padding: 1rem 1.5rem;
  background: #fff;
}

.cb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--cb-muted);
  font-size: 0.85rem;
}

.cb-footer a {
  color: var(--cb-muted);
}

.cb-footer a:hover {
  color: var(--cb-pink);
}

/* Page content in feed column */

.cb-feed .entry-title,
.cb-feed h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.cb-feed .entry-content > *:first-child {
  margin-top: 0;
}

/* WooCommerce — CamBunny chrome */

.woocommerce .woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--cb-muted);
  margin-bottom: 1rem;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.cb-home-products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  margin: 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0.55rem 0.65rem 0.2rem;
  margin: 0;
  color: var(--cb-text);
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 0.65rem 0.4rem;
  color: var(--cb-pink);
  font-weight: 700;
  font-size: 0.85rem;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-card__buy,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--cb-pink) !important;
  color: #fff !important;
  border-radius: var(--cb-radius-pill) !important;
  border: 0 !important;
  font-weight: 700 !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8rem !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-card__buy {
  margin: 0 0.65rem 0.65rem;
  display: inline-block;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--cb-pink-dark) !important;
}

/* Single product: image | details side by side */
.woocommerce div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
  margin: 0;
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product .summary {
  margin: 0;
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product .product_title {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.woocommerce div.product p.price {
  color: var(--cb-pink);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  margin: 0 0 1rem;
  color: var(--cb-muted);
  font-size: 0.95rem;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.woocommerce div.product form.cart .quantity {
  margin: 0;
  float: none;
}

.woocommerce .quantity .qty {
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 0.55rem 0.45rem;
  width: 4.5rem;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  margin: 0 !important;
  float: none !important;
}

.cb-product-meta,
.woocommerce div.product .product_meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--cb-muted);
}

.cb-product-meta__row,
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as {
  display: block;
  line-height: 1.4;
}

.cb-product-meta__label {
  font-weight: 700;
  color: var(--cb-text);
}

.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--cb-pink);
}

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout {
  width: 100%;
}

.woocommerce table.shop_table {
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-page .cb-feed {
  max-width: none;
}

/* Auction feed inside theme */

.cb-feed .auctionit-feed {
  gap: 1rem;
}

.cb-feed .auctionit-feed-card {
  border-radius: var(--cb-radius);
  border-color: var(--cb-border);
}

.cb-feed .auctionit-feed-card__cta {
  background: var(--cb-pink);
  border-radius: var(--cb-radius-pill);
}

.cb-feed .auctionit-feed-card__cta:hover {
  background: var(--cb-pink-dark);
}

.cb-feed .auctionit-feed-card__price {
  color: var(--cb-pink);
}

.glass-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.glass-tier {
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.1rem;
}

.glass-tier--featured {
  border-color: var(--cb-pink);
  background: var(--cb-pink-soft);
}

.glass-tier h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.glass-tier__price {
  color: var(--cb-pink);
  font-weight: 800;
  font-size: 1.15rem;
}

.cb-page-content {
  max-width: 40rem;
}

.cb-page-content h2 {
  margin-top: 1.75rem;
}

/* Mobile */

@media (max-width: 1100px) {
  .cb-shell {
    grid-template-columns: 1fr;
  }

  /* Suggestions move under main content — do not hide */
  .cb-aside {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1.25rem 1rem 2rem;
    border-top: 1px solid var(--cb-border);
  }

  .cb-feed {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .cb-app {
    display: flex;
    flex-direction: column;
  }

  .cb-shell {
    width: 100%;
    border-left: 0;
  }

  .cb-mobile-bar {
    display: flex;
  }

  .cb-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.4);
  }

  .cb-nav-backdrop[hidden] {
    display: none !important;
  }

  .cb-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 300px);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--cb-shadow);
    border-right: 1px solid var(--cb-border);
    z-index: 90;
    background: #fff;
  }

  .admin-bar .cb-nav {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
  }

  @media screen and (max-width: 782px) {
    .admin-bar .cb-nav {
      top: 46px;
      height: calc(100vh - 46px);
      height: calc(100dvh - 46px);
    }
  }

  .cb-nav.is-open {
    transform: translateX(0);
  }

  .cb-feed {
    padding: 1rem 1rem 2rem;
  }

  .cb-modes {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .cb-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .glass-tiers {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .cb-mobile-bar,
  .cb-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .cb-home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1101px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .cb-home-products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
