/*
Theme Name: Coziwow Replica
Theme URI: https://cozi-wow.com/
Description: Recovered Coziwow storefront theme for WooCommerce.
Version: 1.0.0
*/

:root {
  --cozi-ink: #1c1c1c;
  --cozi-muted: #6d6d6d;
  --cozi-border: #e7e7e7;
  --cozi-accent: #c86a3d;
  --cozi-bg: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cozi-ink);
  background: var(--cozi-bg);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.coziwow-shell {
  width: min(1464px, calc(100% - 40px));
  margin: 0 auto;
}
.coziwow-page-content { min-height: 45vh; }
.coziwow-page-content > .coziwow-shell { padding: 40px 0 72px; }

.coziwow-shop-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 22px;
  border-bottom: 1px solid var(--cozi-border);
}
.coziwow-shop-head h1 { margin: 0; font-size: clamp(26px, 3vw, 42px); }
.coziwow-shop-count { color: var(--cozi-muted); font-size: 14px; }
.coziwow-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
  margin: 30px 0 70px;
  padding: 0;
  list-style: none;
}
.coziwow-product-card { min-width: 0; }
.coziwow-product-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
}
.coziwow-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.coziwow-product-card:hover .coziwow-product-media img { transform: scale(1.03); }
.coziwow-product-info { padding-top: 12px; }
.coziwow-product-title {
  display: block;
  min-height: 2.6em;
  text-decoration: none;
  line-height: 1.35;
}
.coziwow-product-price { margin-top: 8px; font-size: 15px; }
.coziwow-product-price del { color: var(--cozi-muted); margin-right: 7px; }
.coziwow-product-price ins { text-decoration: none; }

.coziwow-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 54px;
  padding: 42px 0 76px;
}
.coziwow-product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.coziwow-product-gallery a {
  display: block;
  background: #f6f6f6;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.coziwow-product-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coziwow-product-summary { position: sticky; top: 24px; align-self: start; }
.coziwow-product-summary h1 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 44px); line-height: 1.1; }
.coziwow-product-summary .price { margin: 0 0 24px; font-size: 22px; }
.coziwow-product-summary .price del { color: var(--cozi-muted); margin-right: 8px; }
.coziwow-product-summary .price ins { text-decoration: none; }
.coziwow-buy-box {
  padding: 22px 0;
  border-top: 1px solid var(--cozi-border);
  border-bottom: 1px solid var(--cozi-border);
}
.coziwow-buy-box .quantity { margin-right: 10px; }
.coziwow-buy-box input.qty,
.coziwow-buy-box select {
  min-height: 44px;
  border: 1px solid #bbb;
  padding: 8px 10px;
}
.coziwow-buy-box button,
.coziwow-buy-box .single_add_to_cart_button {
  min-height: 44px;
  border: 0;
  padding: 10px 20px;
  color: #fff;
  background: var(--cozi-ink);
  cursor: pointer;
}
.coziwow-description {
  margin-top: 34px;
  line-height: 1.65;
}
.coziwow-description img { height: auto; }
.coziwow-description iframe { max-width: 100%; }

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  width: min(1464px, calc(100% - 40px));
  margin: 20px auto 0;
}

@media (max-width: 980px) {
  .coziwow-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coziwow-product-layout { grid-template-columns: 1fr; gap: 24px; }
  .coziwow-product-summary { position: static; }
}
@media (max-width: 640px) {
  .coziwow-shell,
  .woocommerce-notices-wrapper,
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info { width: min(100% - 28px, 1464px); }
  .coziwow-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .coziwow-product-gallery { gap: 8px; }
  .coziwow-page-content > .coziwow-shell { padding-top: 24px; }
}
