/*
Theme Name: Commerce Corp Woo Store
Theme URI: https://www.commercecorpltd.com
Author: Commerce Corp Ltd
Description: Lightweight WooCommerce storefront theme for Commerce Corp Ltd.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: commerce-corp-wp
*/

:root {
  --cc-ink: #0f172a;
  --cc-muted: #5b6b82;
  --cc-line: #d8e2dc;
  --cc-soft: #f5f8f5;
  --cc-teal: #008577;
  --cc-teal-dark: #006f64;
  --cc-coral: #ef5b4f;
  --cc-white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cc-soft);
  color: var(--cc-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.42;
}

a { color: inherit; }

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

.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--cc-line);
}

.cc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.cc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cc-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cc-teal);
  color: #fff;
}

.cc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-nav a,
.cc-button,
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cc-ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cc-button--primary,
.button.alt,
.single_add_to_cart_button,
.add_to_cart_button {
  background: var(--cc-teal);
  border-color: var(--cc-teal);
  color: #fff;
}

.cc-button--buy {
  background: var(--cc-coral);
  border-color: var(--cc-coral);
  color: #fff;
}

.cc-hero {
  min-height: 190px;
  background:
    linear-gradient(90deg, rgba(245,248,245,.98) 0%, rgba(245,248,245,.9) 40%, rgba(245,248,245,.18) 70%),
    url("https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 1px solid var(--cc-line);
}

.cc-hero__content {
  padding: 34px 0 30px;
  max-width: 680px;
}

.cc-eyebrow {
  margin: 0 0 8px;
  color: var(--cc-teal-dark);
  font-weight: 800;
}

.cc-hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
}

.cc-hero p {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 18px;
}

.cc-main {
  padding: 28px 0 56px;
}

.cc-shop-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.cc-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
  margin: 0;
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.cc-product-card {
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.cc-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background: #eef4f1;
}

.cc-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--cc-teal-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.cc-product-card .cc-pill {
  position: absolute;
  top: 10px;
  left: 10px;
}

.cc-product-card__body {
  padding: 12px 14px 14px;
}

.cc-product-card h2,
.woocommerce-loop-product__title {
  margin: 0 0 5px;
  padding: 0;
  font-size: 17px;
  line-height: 1.2;
}

.cc-product-card__delivery,
.cc-product-card__desc,
.cc-product-card__eta {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.25;
}

.cc-product-card__delivery,
.cc-product-card__desc {
  color: var(--cc-muted);
}

.cc-product-card__eta {
  color: var(--cc-teal-dark);
  font-weight: 800;
}

.cc-product-card .price {
  display: block;
  margin: 8px 0;
  color: var(--cc-ink);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.cc-product-card .price del {
  color: var(--cc-muted);
  font-size: 13px;
  font-weight: 400;
}

.cc-product-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cc-product-card__actions .button {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
}

.cc-single {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: start;
}

.cc-panel {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.cc-summary h1 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.1;
}

.cc-summary .price {
  font-size: 28px;
  font-weight: 900;
}

.cc-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 18px 0;
}

.cc-info-list {
  display: grid;
  gap: 12px;
}

.cc-info-block {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  padding: 14px;
}

.cc-info-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cc-info-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--cc-muted);
}

.cc-footer {
  border-top: 1px solid var(--cc-line);
  background: #fff;
  padding: 24px 0;
  color: var(--cc-muted);
}

@media (max-width: 900px) {
  .cc-container { width: min(100% - 24px, 1680px); }
  .cc-header__inner { align-items: flex-start; padding: 12px 0; }
  .cc-single { grid-template-columns: 1fr; }
  .cc-shop-tools { grid-template-columns: 1fr; }
  .cc-hero { min-height: 150px; }
}
