/*
 * woocommerce-extra.css
 * Loaded separately to keep style.css under control.
 * Handles the custom product card layout + shop page tweaks.
 */

/* ── Custom product card ─────────────────────────────────────────────────── */
.dooodle-product-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
}

.product-card-emoji {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 1.8rem;
  background: var(--clr-white);
  border: 2px solid var(--clr-dark);
  border-radius: var(--radius-pill);
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--clr-dark);
}

.product-card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.product-card-image-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 3px solid var(--clr-dark);
  transition: transform 0.3s var(--ease);
}
.dooodle-product-card:hover .product-card-image-link img {
  transform: scale(1.05);
}

.product-card-no-image {
  aspect-ratio: 1 / 1;
  background: var(--clr-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-bottom: 3px solid var(--clr-dark);
}

.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card-body .woocommerce-loop-product__title a {
  color: var(--clr-dark);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}
.product-card-body .woocommerce-loop-product__title a:hover {
  color: var(--clr-purple);
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.product-card-hint {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin: 0;
  font-style: italic;
}

.dooodle-shop-btn {
  display: block !important;
  text-align: center;
  background: var(--clr-orange) !important;
  color: #fff !important;
  border: 2px solid var(--clr-dark) !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  padding: 0.55em 1em !important;
  margin-top: auto !important;
  transition: background 0.15s, transform 0.15s !important;
  text-decoration: none !important;
}
.dooodle-shop-btn:hover {
  background: var(--clr-pink) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* ── Shop / Archive page ─────────────────────────────────────────────────── */
.woocommerce-products-header {
  padding: var(--space-md) 0 var(--space-sm);
}
.woocommerce-products-header__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  font-weight: 900 !important;
}

.woocommerce-ordering select {
  border: 2px solid var(--clr-dark);
  border-radius: var(--radius-pill);
  padding: 0.4em 1em;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--clr-white);
  cursor: pointer;
}

/* ── Product single page ─────────────────────────────────────────────────── */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  border: 3px solid var(--clr-dark);
  border-radius: var(--radius-md);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-head);
  font-weight: 800;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--clr-purple);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: 2px solid var(--clr-grey);
  border-radius: var(--radius-md);
}

/* ── Cart / Checkout ─────────────────────────────────────────────────────── */
.woocommerce table.shop_table {
  border: 2px solid var(--clr-dark) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--clr-yellow);
  font-family: var(--font-head);
  font-weight: 900;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  border: 3px solid var(--clr-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-pop);
}

/* ── Order confirmation ──────────────────────────────────────────────────── */
.woocommerce-thankyou-order-received {
  background: var(--clr-yellow);
  border: 3px solid var(--clr-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-pop);
  margin-bottom: 2rem;
}

/* ── Woo notices ─────────────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--clr-purple) !important;
  background: #F3E5F5 !important;
  font-weight: 700 !important;
}
.woocommerce-error {
  border-top-color: var(--clr-orange) !important;
  background: #FFF3CD !important;
  font-weight: 700 !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }
  .product-card-emoji { font-size: 1.3rem; width: 2rem; height: 2rem; }
}
