/* Cape and Co Chic WooCommerce Styling */

.cape-chic-woo-active {
  background: #fbfaf8;
}

.cape-chic-woo-active .site-main,
.cape-chic-woo-active .content-area,
.cape-chic-woo-active main,
.cape-chic-woo-active .woocommerce {
  font-family: 'Poppins', Arial, sans-serif;
}

.cape-chic-woo-active .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 55px 24px;
}

/* Shop Header */
.cape-shop-intro {
  text-align: center;
  margin: 0 auto 45px;
  max-width: 900px;
}

.cape-shop-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 16px;
}

.cape-chic-woo-active .woocommerce-products-header__title,
.cape-chic-woo-active .page-title,
.cape-chic-woo-active .entry-title {
  color: #111;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 24px;
}

.cape-chic-woo-active .term-description,
.cape-chic-woo-active .woocommerce-products-header .term-description {
  max-width: 760px;
  margin: 0 auto 38px;
  color: #686868;
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

/* Ordering and Result Count */
.cape-chic-woo-active .woocommerce-result-count,
.cape-chic-woo-active .woocommerce-ordering {
  margin-bottom: 32px;
  color: #777;
  font-size: 14px;
}

.cape-chic-woo-active .woocommerce-ordering select,
.cape-chic-woo-active select,
.cape-chic-woo-active input.input-text,
.cape-chic-woo-active textarea {
  border: 1px solid #ddd !important;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  color: #111;
  outline: none;
}

.cape-chic-woo-active textarea {
  border-radius: 18px;
}

/* Product Grid */
.cape-chic-woo-active ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px !important;
  margin: 0 !important;
}

.cape-chic-woo-active ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 28px;
  overflow: hidden;
  padding: 0 0 24px !important;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cape-chic-woo-active ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 65px rgba(0,0,0,0.11);
  border-color: rgba(0,0,0,0.18);
}

.cape-chic-woo-active ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 22px !important;
  background: #f4f1ed;
  transition: transform .45s ease;
}

.cape-chic-woo-active ul.products li.product:hover a img {
  transform: scale(1.04);
}

.cape-chic-woo-active ul.products li.product .woocommerce-loop-product__title,
.cape-chic-woo-active ul.products li.product h2 {
  font-size: 18px !important;
  font-weight: 400;
  color: #111;
  line-height: 1.4;
  padding: 0 20px !important;
  margin: 0 0 10px !important;
}

.cape-chic-woo-active ul.products li.product .price {
  color: #111 !important;
  font-size: 17px !important;
  font-weight: 500;
  margin-bottom: 18px !important;
}

.cape-chic-woo-active ul.products li.product .price del {
  color: #999;
  opacity: .7;
}

.cape-chic-woo-active ul.products li.product .onsale,
.cape-chic-woo-active span.onsale {
  background: #111 !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
}

/* Buttons */
.cape-chic-woo-active .button,
.cape-chic-woo-active button.button,
.cape-chic-woo-active input.button,
.cape-chic-woo-active #respond input#submit,
.cape-chic-woo-active a.added_to_cart,
.cape-chic-woo-active .checkout-button {
  background: #111 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 26px !important;
  border: 1px solid #111 !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all .3s ease !important;
}

.cape-chic-woo-active .button:hover,
.cape-chic-woo-active button.button:hover,
.cape-chic-woo-active input.button:hover,
.cape-chic-woo-active #respond input#submit:hover,
.cape-chic-woo-active a.added_to_cart:hover,
.cape-chic-woo-active .checkout-button:hover {
  background: #fff !important;
  color: #111 !important;
}

/* Single Product */
.cape-chic-woo-active.single-product .product {
  background: #fff;
  border-radius: 34px;
  padding: 42px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}

.cape-chic-woo-active.single-product div.product div.images img {
  border-radius: 28px;
  background: #f4f1ed;
}

.cape-chic-woo-active.single-product div.product .summary {
  padding-left: 35px;
}

.cape-chic-woo-active.single-product div.product .product_title {
  text-align: left;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  margin-bottom: 18px;
}

.cape-chic-woo-active.single-product div.product p.price,
.cape-chic-woo-active.single-product div.product span.price {
  color: #111;
  font-size: 26px;
  font-weight: 500;
}

.cape-chic-woo-active.single-product div.product .woocommerce-product-details__short-description {
  color: #666;
  font-size: 17px;
  line-height: 1.8;
  margin: 24px 0;
}

.cape-chic-woo-active .quantity .qty {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 12px 10px;
  min-height: 48px;
}

/* Tabs */
.cape-chic-woo-active .woocommerce-tabs {
  margin-top: 60px;
  background: #fff;
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.05);
}

.cape-chic-woo-active .woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 25px;
  border-bottom: 1px solid #eee;
}

.cape-chic-woo-active .woocommerce div.product .woocommerce-tabs ul.tabs li,
.cape-chic-woo-active .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 16px 0 0 !important;
}

.cape-chic-woo-active .woocommerce-tabs ul.tabs li a {
  color: #555 !important;
  font-weight: 400 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.cape-chic-woo-active .woocommerce-tabs ul.tabs li.active a {
  color: #111 !important;
}

/* Cart and Checkout */
.cape-chic-woo-active table.shop_table,
.cape-chic-woo-active .woocommerce-checkout-review-order,
.cape-chic-woo-active .woocommerce-billing-fields,
.cape-chic-woo-active .woocommerce-shipping-fields,
.cape-chic-woo-active .woocommerce-additional-fields,
.cape-chic-woo-active .woocommerce-MyAccount-content,
.cape-chic-woo-active .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 26px !important;
  padding: 28px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.05);
}

.cape-chic-woo-active table.shop_table th,
.cape-chic-woo-active table.shop_table td {
  border-color: #eee !important;
  padding: 18px !important;
}

.cape-chic-woo-active .woocommerce-info,
.cape-chic-woo-active .woocommerce-message,
.cape-chic-woo-active .woocommerce-error {
  border-top: none !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  color: #111;
}

.cape-chic-woo-active .woocommerce-info::before,
.cape-chic-woo-active .woocommerce-message::before {
  color: #111;
}

/* Categories */
.cape-chic-woo-active ul.products li.product-category h2 {
  padding: 0 20px !important;
  font-size: 20px !important;
  letter-spacing: 1px;
}

.cape-chic-woo-active ul.products li.product-category mark.count {
  background: transparent;
  color: #888;
}

/* Pagination */
.cape-chic-woo-active .woocommerce-pagination ul {
  border: none !important;
  margin-top: 45px !important;
}

.cape-chic-woo-active .woocommerce-pagination ul li {
  border: none !important;
  margin: 0 5px !important;
}

.cape-chic-woo-active .woocommerce-pagination ul li a,
.cape-chic-woo-active .woocommerce-pagination ul li span {
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 12px 16px !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.cape-chic-woo-active .woocommerce-pagination ul li span.current {
  background: #111;
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .cape-chic-woo-active ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px !important;
  }

  .cape-chic-woo-active.single-product div.product .summary {
    padding-left: 20px;
  }
}

@media (max-width: 900px) {
  .cape-chic-woo-active .woocommerce {
    padding: 40px 18px;
  }

  .cape-chic-woo-active ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cape-chic-woo-active.single-product .product {
    padding: 26px;
  }

  .cape-chic-woo-active.single-product div.product .summary {
    padding-left: 0;
    margin-top: 30px;
  }

  .cape-chic-woo-active.single-product div.product .product_title {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .cape-chic-woo-active ul.products {
    grid-template-columns: 1fr;
    gap: 22px !important;
  }

  .cape-chic-woo-active .woocommerce-result-count,
  .cape-chic-woo-active .woocommerce-ordering {
    float: none !important;
    text-align: center;
    width: 100%;
  }

  .cape-chic-woo-active table.shop_table,
  .cape-chic-woo-active .woocommerce-checkout-review-order,
  .cape-chic-woo-active .woocommerce-billing-fields,
  .cape-chic-woo-active .woocommerce-shipping-fields,
  .cape-chic-woo-active .woocommerce-additional-fields {
    padding: 18px;
  }
}
