/* CartNexa WooCommerce theme — matches CartNexa Next.js storefront */
:root {
  --cn-brand-50: #fff7ed;
  --cn-brand-100: #ffedd5;
  --cn-brand-500: #ea580c;
  --cn-brand-600: #c2410c;
  --cn-brand-700: #9a3412;
  --cn-brand-yellow: #f59e0b;
  --cn-brand-accent: #0d9488;
  --cn-zinc-50: #fafafa;
  --cn-zinc-100: #f4f4f5;
  --cn-zinc-200: #e4e4e7;
  --cn-zinc-400: #a1a1aa;
  --cn-zinc-500: #71717a;
  --cn-zinc-600: #52525b;
  --cn-zinc-700: #3f3f46;
  --cn-zinc-800: #27272a;
  --cn-zinc-900: #18181b;
  --cn-max: 1400px;
  --cn-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--cn-font);
  background: var(--cn-zinc-50);
  color: var(--cn-zinc-900);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.cn-container {
  max-width: var(--cn-max);
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.cn-container--wide {
  max-width: var(--cn-max);
  width: 100%;
}

@media (min-width: 768px) {
  .cn-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Header */
.cn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cn-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cn-zinc-900);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .cn-promo {
    font-size: 14px;
  }
}

.cn-promo-badge {
  display: none;
  background: var(--cn-brand-600);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .cn-promo-badge {
    display: inline;
  }
}

.cn-header-main {
  border-bottom: 1px solid var(--cn-zinc-200);
}

.cn-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

@media (min-width: 768px) {
  .cn-header-row {
    gap: 12px;
    padding: 12px 0;
  }
}

.cn-logo img {
  height: 40px;
  width: auto;
  max-width: min(52vw, 200px);
  object-fit: contain;
}

@media (min-width: 768px) {
  .cn-logo img {
    height: 44px;
    max-width: 160px;
  }
}

.cn-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .cn-menu-toggle {
    display: none;
  }
}

.cn-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cn-zinc-800);
}

.cn-search {
  flex: 1;
  display: none;
  min-width: 0;
}

@media (min-width: 768px) {
  .cn-search {
    display: flex;
  }
}

.cn-search-mobile {
  display: block;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .cn-search-mobile {
    display: none;
  }
}

.cn-live-search {
  position: relative;
  width: 100%;
}

.cn-search form,
.cn-search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.cn-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--cn-zinc-400);
  pointer-events: none;
  display: flex;
}

.cn-search input[type="search"],
.cn-search-input {
  flex: 1;
  border: 2px solid var(--cn-brand-500);
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 10px 12px 10px 38px;
  font-size: 14px;
}

.cn-search button {
  background: var(--cn-brand-500);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
}

.cn-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: #fff;
  border: 1px solid var(--cn-zinc-200);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  overflow-y: auto;
}

.cn-search-dropdown[hidden] {
  display: none !important;
}

.cn-search-loading,
.cn-search-empty {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  color: var(--cn-zinc-500);
}

.cn-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-search-results li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cn-zinc-50);
  text-decoration: none;
  color: inherit;
}

.cn-search-results li a:hover {
  background: var(--cn-zinc-50);
}

.cn-search-results img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--cn-zinc-50);
  border-radius: 4px;
  flex-shrink: 0;
}

.cn-search-results .cn-hit-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cn-zinc-900);
  line-height: 1.3;
}

.cn-search-results .cn-hit-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--cn-brand-600);
  margin-top: 2px;
}

.cn-search-view-all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--cn-brand-600);
  border-top: 1px solid var(--cn-zinc-100);
}

.cn-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cn-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--cn-zinc-700);
}

.cn-header-action:hover {
  color: var(--cn-brand-600);
}

.cn-header-action svg {
  width: 24px;
  height: 24px;
}

.cn-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--cn-brand-600);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-cart-wrap {
  position: relative;
}

.cn-hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .cn-hide-sm {
    display: flex;
  }
}

.cn-hide-md {
  display: none;
}

@media (min-width: 768px) {
  .cn-hide-md {
    display: flex;
  }
}

.cn-cat-nav {
  display: none;
  border-bottom: 1px solid var(--cn-zinc-100);
  background: var(--cn-zinc-50);
}

.cn-cat-nav.is-open {
  display: block;
}

@media (min-width: 768px) {
  .cn-cat-nav {
    display: block;
  }

  .cn-cat-nav.is-open {
    display: block;
  }
}

.cn-cat-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.cn-cat-nav-inner::-webkit-scrollbar {
  display: none;
}

.cn-cat-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--cn-zinc-700);
}

.cn-cat-pill:hover {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cn-cat-pill--active {
  background: var(--cn-brand-600);
  color: #fff;
  font-weight: 700;
}

/* Hero */
.cn-hero {
  border-bottom: 1px solid var(--cn-zinc-100);
  background: linear-gradient(to bottom, var(--cn-zinc-50), #fff);
  padding: 32px 16px;
  text-align: center;
}

.cn-hero h1 {
  margin: 0;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .cn-hero h1 {
    font-size: 1.875rem;
  }
}

.cn-hero p {
  margin: 8px 0 0;
  color: var(--cn-zinc-600);
  font-size: 14px;
}

.cn-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cn-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.cn-btn-primary {
  background: var(--cn-brand-yellow);
  color: var(--cn-zinc-900);
}

.cn-btn-outline {
  background: #fff;
  border: 1px solid var(--cn-zinc-300);
}

.cn-btn-teal {
  border: 1px solid var(--cn-brand-accent);
  color: #0f766e;
  background: #fff;
}

/* Category grid */
.cn-categories {
  padding: 24px 12px;
  border-bottom: 1px solid var(--cn-zinc-100);
  background: #fff;
}

.cn-categories h2 {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cn-zinc-500);
  margin: 0 0 16px;
}

.cn-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--cn-max);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cn-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .cn-cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) {
  .cn-cat-grid {
    grid-template-columns: repeat(9, 1fr);
  }
}

.cn-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--cn-zinc-100);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.8);
  text-align: center;
}

.cn-cat-card:hover {
  border-color: #fed7aa;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cn-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cn-zinc-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cn-brand-600);
}

.cn-cat-card span.cn-cat-label {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cn-zinc-800);
}

/* Product sections */
.cn-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--cn-zinc-100);
  background: #fff;
}

.cn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 12px;
}

.cn-section-title {
  margin: 0;
  font-size: 18px;
}

.cn-section-link {
  font-size: 14px;
  color: var(--cn-brand-600);
  font-weight: 600;
}

.cn-carousel {
  position: relative;
  padding: 0 40px;
}

.cn-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  align-items: stretch;
}

.cn-carousel-track::before,
.cn-carousel-track::after {
  display: none !important;
  content: none !important;
}

.cn-carousel-track::-webkit-scrollbar {
  display: none;
}

.cn-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--cn-zinc-200);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}

.cn-carousel-prev {
  left: 4px;
}

.cn-carousel-next {
  right: 4px;
}

/* Product card (WooCommerce loop) */
.cn-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Homepage carousels/sections only — shop archive grid is in shop-archive.css */
@media (min-width: 640px) {
  .cn-section .cn-products-grid ul.products,
  .cn-home-catalog .cn-products-grid ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cn-section .cn-products-grid ul.products,
  .cn-home-catalog .cn-products-grid ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cn-carousel-track li.product.cn-card {
  width: 172px !important;
  min-width: 172px;
  max-width: 172px;
  flex: 0 0 172px;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
}

.cn-products-grid ul.products li.product.cn-card {
  margin: 0 !important;
  display: block;
  min-width: 0;
}

.cn-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--cn-zinc-100);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.cn-card-inner:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cn-card-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  flex-shrink: 0;
  background: var(--cn-zinc-50);
  border-radius: 6px;
  overflow: hidden;
}

.cn-card-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.cn-card-image img,
.cn-card-image .cn-card-img,
.cn-card-image .attachment-woocommerce_thumbnail {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center;
  margin: 0 !important;
}

.cn-card-img-placeholder {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--cn-zinc-200);
}

.cn-rating-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cn-rating-badge.has-reviews {
  background: #15803d;
  color: #fff;
}

.cn-card-title {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--cn-zinc-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cn-card-title {
    font-size: 14px;
  }
}

.cn-card-prices {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.cn-badge-sale {
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
}

.cn-price-regular {
  font-size: 12px;
  color: var(--cn-zinc-400);
  text-decoration: line-through;
}

.cn-price-current {
  font-size: 14px;
  font-weight: 700;
}

.cn-card-eta {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--cn-zinc-600);
}

.cn-card-eta strong {
  color: var(--cn-zinc-800);
}

/* Shop archive */
.cn-shop-archive {
  background: var(--cn-zinc-50);
}

.cn-shop-layout {
  display: block;
  width: 100%;
}

.cn-shop-sidebar {
  display: none;
}

.cn-shop-main {
  min-width: 0;
}

@media (min-width: 992px) {
  .cn-shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .cn-shop-sidebar {
    display: block !important;
    position: sticky;
    top: 88px;
  }
}

.cn-shop-sidebar-card {
  background: #fff;
  border: 1px solid var(--cn-zinc-200);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cn-shop-sidebar-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cn-zinc-900);
}

.cn-shop-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-shop-sidebar-list li {
  margin: 0;
  border-bottom: 1px solid var(--cn-zinc-100);
}

.cn-shop-sidebar-list li:last-child {
  border-bottom: none;
}

.cn-shop-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cn-zinc-700);
  text-decoration: none;
  transition: color 0.15s;
}

.cn-shop-sidebar-link:hover {
  color: var(--cn-brand-600);
}

.cn-shop-sidebar-link.is-active {
  color: var(--cn-brand-600);
  font-weight: 700;
}

.cn-shop-sidebar-count {
  font-size: 12px;
  color: var(--cn-zinc-500);
  font-weight: 400;
}

.cn-shop-sidebar-card--widget .price_slider_wrapper,
.cn-shop-sidebar-card--widget .widget {
  margin: 0;
}

.cn-shop-sidebar-card--widget .widget-title {
  display: none;
}

.cn-shop-header {
  padding: 20px 0 12px;
}

.cn-shop-header h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cn-zinc-900);
}

.cn-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--cn-zinc-200);
  border-radius: 8px;
}

.cn-shop-toolbar .woocommerce-result-count {
  margin: 0;
  font-size: 14px;
  color: var(--cn-zinc-600);
}

.cn-shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.cn-shop-toolbar select {
  border: 1px solid var(--cn-zinc-300);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.cn-products-grid--archive {
  width: 100%;
}

.cn-products-grid--archive ul.products::before,
.cn-products-grid--archive ul.products::after {
  display: none !important;
  content: none !important;
}

.cn-main {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .cn-main {
    padding-bottom: 0;
  }
}

/* Single product */
.cn-single-product .woocommerce-product-gallery {
  margin-bottom: 24px;
}

.cn-single-product .single_add_to_cart_button {
  background: var(--cn-brand-yellow) !important;
  color: var(--cn-zinc-900) !important;
  font-weight: 600 !important;
  border-radius: 2px !important;
  padding: 14px 24px !important;
}

/* Footer */
.cn-footer {
  margin-top: 64px;
  border-top: 1px solid var(--cn-zinc-200);
  background: #fff;
}

.cn-footer-newsletter {
  display: none;
  background: var(--cn-brand-600);
  color: #fff;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .cn-footer-newsletter {
    display: block;
  }
}

.cn-footer-newsletter-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .cn-footer-newsletter-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cn-footer-grid {
  display: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 48px 16px;
  gap: 40px;
}

@media (min-width: 768px) {
  .cn-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

.cn-footer h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.cn-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-footer li {
  margin-bottom: 8px;
}

.cn-footer a {
  font-size: 14px;
  color: var(--cn-zinc-600);
}

.cn-footer a:hover {
  color: var(--cn-brand-600);
  text-decoration: underline;
}

.cn-footer-bottom {
  border-top: 1px solid var(--cn-zinc-200);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--cn-zinc-600);
}

/* Mobile bottom nav */
.cn-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid var(--cn-zinc-200);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .cn-mobile-nav {
    display: none;
  }
}

.cn-mobile-nav a {
  text-decoration: none;
}

/* WhatsApp float */
.cn-whatsapp {
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: 35;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Product page: keep WhatsApp above nav but not over buy buttons */
.single-product .cn-whatsapp {
  left: 12px;
  right: auto;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  z-index: 35;
}

@media (min-width: 992px) {
  .cn-whatsapp,
  .single-product .cn-whatsapp {
    left: auto;
    right: 20px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    z-index: 80;
  }
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--cn-brand-500) !important;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 16px 0;
  font-size: 13px;
  color: var(--cn-zinc-600);
}

/* === Full homepage (CartNexa storefront) === */
.cn-desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .cn-desktop-only {
    display: block;
  }

  .cn-static-shell.cn-hero {
    display: none;
  }
}

.cn-home-catalog {
  background: var(--cn-zinc-50);
}

/* Hero carousel */
.cn-hero-carousel {
  background: var(--cn-zinc-100);
  padding: 12px 0 0;
}

.cn-hero-slide-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cn-hero-slide {
  display: none;
  min-height: 220px;
  background: linear-gradient(to right, #18181b, #9a3412, #115e59);
  color: #fff;
  text-decoration: none;
  align-items: stretch;
}

.cn-hero-slide.is-active {
  display: flex;
}

@media (min-width: 768px) {
  .cn-hero-slide {
    min-height: 320px;
  }
}

.cn-hero-slide-content {
  flex: 1;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.cn-hero-badge {
  display: inline-block;
  width: fit-content;
  background: var(--cn-brand-500);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cn-hero-slide-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .cn-hero-slide-title {
    font-size: 2.25rem;
  }
}

.cn-hero-slide-sub {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
  max-width: 28rem;
}

.cn-hero-cta {
  margin-top: 20px;
  display: inline-block;
  background: #facc15;
  color: #18181b;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 4px;
  width: fit-content;
}

.cn-hero-slide-img {
  display: none;
  width: 38%;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media (min-width: 768px) {
  .cn-hero-slide-img {
    display: flex;
  }

  .cn-hero-slide-img img {
    max-height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

.cn-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.cn-hero-prev {
  left: 12px;
}

.cn-hero-next {
  right: 12px;
}

.cn-hero-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--cn-zinc-200);
  border-top: none;
  background: #fff;
}

@media (min-width: 640px) {
  .cn-hero-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .cn-hero-tabs {
    grid-template-columns: repeat(5, 1fr);
  }
}

.cn-hero-tab {
  border: none;
  border-right: 1px solid var(--cn-zinc-100);
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.cn-hero-tab.is-active {
  border-bottom: 2px solid var(--cn-brand-600);
  background: #fff7ed;
}

.cn-hero-tab-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cn-zinc-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cn-hero-tab.is-active .cn-hero-tab-title {
  color: var(--cn-brand-600);
}

.cn-hero-tab-sub {
  display: block;
  font-size: 10px;
  color: var(--cn-zinc-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Offer tiles */
.cn-offer-tiles {
  background: var(--cn-zinc-100);
  padding: 16px 0;
}

.cn-offer-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .cn-offer-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cn-offer-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #27272a, #18181b);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cn-offer-tile:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cn-offer-tile-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.cn-offer-tile-sub {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.cn-offer-tile-cta {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cn-brand-yellow);
}

.cn-offer-tile-img {
  margin-top: 12px;
  width: 55%;
  max-width: 140px;
  align-self: flex-end;
}

.cn-offer-tile-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

/* Category circles */
.cn-category-grid-section {
  background: #fff;
  border-bottom: 1px solid var(--cn-zinc-100);
  padding: 24px 0;
}

.cn-category-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .cn-category-circles {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .cn-category-circles {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) {
  .cn-category-circles {
    grid-template-columns: repeat(9, 1fr);
  }
}

.cn-category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.cn-category-circle-img {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 1px solid var(--cn-zinc-100);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .cn-category-circle-img {
    width: 96px;
    height: 96px;
  }
}

.cn-category-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cn-category-initials {
  font-size: 12px;
  font-weight: 700;
  color: var(--cn-brand-600);
}

.cn-category-circle-name {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cn-zinc-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Offer zone */
.cn-offer-zone {
  background: #fff;
  padding: 32px 0;
}

.cn-offer-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cn-offer-zone-title {
  margin: 0;
  font-size: 1.5rem;
}

.cn-offer-zone-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--cn-zinc-500);
}

.cn-offer-zone-nav {
  display: flex;
  gap: 8px;
}

.cn-offer-zone-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--cn-zinc-200);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.cn-offer-zone-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.cn-offer-zone-track::-webkit-scrollbar {
  display: none;
}

.cn-offer-poster {
  flex: 0 0 260px;
  height: 300px;
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cn-offer-grad-1 {
  background: linear-gradient(to bottom right, #c2410c, #0f766e);
}

.cn-offer-grad-2 {
  background: linear-gradient(to bottom right, #ea580c, #dc2626);
}

.cn-offer-grad-3 {
  background: linear-gradient(to bottom right, #4f46e5, #7c3aed);
}

.cn-offer-grad-4 {
  background: linear-gradient(to bottom right, #059669, #0d9488);
}

.cn-offer-grad-5 {
  background: linear-gradient(to bottom right, #e11d48, #db2777);
}

.cn-offer-grad-6 {
  background: linear-gradient(to bottom right, #d97706, #ea580c);
}

.cn-offer-save {
  display: inline-block;
  background: #facc15;
  color: #18181b;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}

.cn-offer-save--hot {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cn-offer-price {
  margin: 8px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.cn-offer-name {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cn-offer-mrp {
  margin: 4px 0 0;
  font-size: 11px;
  opacity: 0.75;
  text-decoration: line-through;
}

.cn-offer-poster-img {
  margin-top: auto;
  align-self: flex-end;
  width: 58%;
  max-width: 150px;
}

.cn-offer-poster-img img {
  width: 100%;
  object-fit: contain;
}

.cn-offer-view {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fde68a;
}

/* Footer payments + mobile nav */
.cn-footer-payments {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cn-zinc-500);
  border-top: 1px solid var(--cn-zinc-100);
}

@media (min-width: 768px) {
  .cn-footer-payments {
    display: flex;
  }
}

.cn-mobile-nav-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  color: var(--cn-zinc-500);
  text-decoration: none;
}

.cn-mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.cn-mobile-nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.cn-mobile-nav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cn-mobile-nav-item--active,
.cn-mobile-nav-item--active .cn-mobile-nav-icon,
.cn-mobile-nav-item:hover {
  color: var(--cn-brand-600);
}

.cn-mobile-nav-item--active .cn-mobile-nav-icon svg {
  stroke-width: 2.5;
}

.cn-mobile-cart-badge {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(14px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cn-brand-600);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WooCommerce loop — never let product images blow up the page */
.woocommerce ul.products li.product.cn-card,
.woocommerce-page ul.products li.product.cn-card {
  float: none !important;
  clear: none !important;
}

.woocommerce ul.products li.product.cn-card .cn-card-image img,
.woocommerce-page ul.products li.product.cn-card .cn-card-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
