/* ============================================================
   AFTER CREDITS — WooCommerce store pages (shop, category, cart,
   checkout, account). Loaded on top of ac-shell.css. First pass;
   refined against live markup. Keeps WooCommerce functional.
   ============================================================ */

/* ---- Page width + spacing ---- */
body.woocommerce .wp-block-group.has-global-padding,
body.woocommerce-page .wp-block-group.has-global-padding{padding-left:0 !important;padding-right:0 !important}
.ac-store-wrap,
body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce{max-width:var(--max);margin:0 auto;padding:24px 24px 64px}

/* Page title / archive header */
body.woocommerce .woocommerce-products-header,
body.woocommerce h1.wp-block-post-title,
body.woocommerce .wp-block-query-title,
body.woocommerce .woocommerce-products-header__title,
body.woocommerce-page h1{max-width:var(--max);margin:32px auto 8px;padding:0 24px;
  font-weight:800 !important;letter-spacing:-.03em !important;text-transform:uppercase;color:var(--text) !important}

/* Result count / ordering */
body.woocommerce .woocommerce-result-count,
body.woocommerce .woocommerce-ordering,
body.woocommerce .wc-block-catalog-sorting{color:var(--muted-2) !important;font-size:13px}
body.woocommerce select{background:#0d0d0d !important;color:var(--text) !important;border:1px solid #2f2f2f !important;padding:8px 10px}

/* ---- Product grid (classic + block) ---- */
body.woocommerce ul.products{display:grid !important;grid-template-columns:repeat(4,1fr);gap:18px;list-style:none;margin:8px 0 0;padding:0}
body.woocommerce ul.products li.product{width:auto !important;margin:0 !important;float:none !important;text-align:left}
body.woocommerce ul.products li.product a img,
body.woocommerce .wc-block-grid__product-image img,
body.woocommerce .wp-block-woocommerce-product-image img{background:#151515;border:1px solid var(--line);aspect-ratio:1/1;object-fit:cover;width:100%}
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce .wc-block-grid__product-title{color:var(--text) !important;font-size:16px !important;letter-spacing:.02em;margin:14px 0 6px !important;font-weight:600}
body.woocommerce ul.products li.product .price,
body.woocommerce .wc-block-grid__product-price,
body.woocommerce .price,
body.woocommerce .woocommerce-Price-amount{color:var(--muted) !important;font-size:15px !important}
body.woocommerce ul.products li.product .onsale,
body.woocommerce .wc-block-grid__product-onsale{background:var(--text);color:#000;border:none}

/* ---- Buttons (add to cart, proceed, etc.) ---- */
body.woocommerce .button,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce .wp-block-button__link,
body.woocommerce #place_order{
  background:var(--button) !important;color:var(--button-text) !important;border:1px solid #e8e8e8 !important;
  border-radius:0 !important;padding:14px 26px !important;font-weight:700 !important;letter-spacing:.07em !important;
  text-transform:uppercase !important;font-size:13px !important;box-shadow:none !important}
body.woocommerce .button:hover,body.woocommerce a.button:hover,body.woocommerce button.button:hover,
body.woocommerce #place_order:hover{background:#fff !important}
/* secondary/ghost buttons */
body.woocommerce .button.wc-backward,body.woocommerce a.added_to_cart{
  background:transparent !important;color:var(--text) !important;border:1px solid #5b5b5b !important}

/* ---- Tables (cart / order review) ---- */
body.woocommerce table.shop_table,
body.woocommerce table.cart,
body.woocommerce .cart_totals table{background:var(--surface) !important;color:var(--text) !important;border:1px solid var(--line) !important}
body.woocommerce table.shop_table th,
body.woocommerce table.shop_table td{border-color:var(--line) !important;color:var(--text) !important}
body.woocommerce table.shop_table thead th{color:var(--muted) !important;text-transform:uppercase;letter-spacing:.06em;font-size:12px}
body.woocommerce .cart_item img{border:1px solid var(--line);background:#151515}

/* ---- Form fields (checkout / coupon / login) ---- */
body.woocommerce .input-text,
body.woocommerce input[type=text],
body.woocommerce input[type=email],
body.woocommerce input[type=tel],
body.woocommerce input[type=password],
body.woocommerce input[type=number],
body.woocommerce textarea,
body.woocommerce .select2-container .select2-selection{
  background:#0d0d0d !important;border:1px solid #2f2f2f !important;color:var(--text) !important;
  padding:12px !important;border-radius:0 !important}
body.woocommerce label,body.woocommerce legend,body.woocommerce h3{color:var(--text) !important}
body.woocommerce .woocommerce-input-wrapper{color:var(--text)}

/* ---- Quantity ---- */
body.woocommerce .quantity input.qty{background:#0d0d0d !important;border:1px solid #2f2f2f !important;color:var(--text) !important;padding:12px 8px !important}

/* ---- Notices ---- */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error,
body.woocommerce .wc-block-components-notice-banner{
  background:#0d0d0d !important;color:var(--text) !important;border-top:3px solid var(--text) !important;
  border-radius:0;list-style:none}
body.woocommerce .woocommerce-info.ac-empty{font-size:16px;letter-spacing:.02em;padding:22px;text-align:center;border-top:1px solid var(--line)}
body.woocommerce .ac-empty-wrap{max-width:var(--max);margin:24px auto 72px;padding:0 24px}
body.woocommerce .ac-empty-wrap .ac-empty{color:var(--muted)}

/* ---- Breadcrumb ---- */
body.woocommerce .woocommerce-breadcrumb{max-width:var(--max);margin:18px auto 0;padding:0 24px;color:var(--muted-2) !important;font-size:13px}
body.woocommerce .woocommerce-breadcrumb a{color:var(--muted) !important}

/* ---- Totals / order review emphasis ---- */
body.woocommerce .order-total .amount,body.woocommerce .cart-subtotal .amount{color:var(--text) !important}

/* ---- Responsive grid ---- */
@media(max-width:1024px){body.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){body.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
  .ac-store-wrap,body.woocommerce .woocommerce{padding:16px 16px 48px}}
@media(max-width:480px){body.woocommerce ul.products{grid-template-columns:1fr}}

/* Intentional collection page — remove default WooCommerce chrome */
body.woocommerce .woocommerce-result-count,
body.woocommerce .woocommerce-ordering,
body.woocommerce .wc-block-catalog-sorting,
body.woocommerce .wp-block-woocommerce-catalog-sorting,
body.woocommerce .wp-block-woocommerce-product-results-count,
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce .wp-block-woocommerce-breadcrumbs{ display:none !important; }
@media (max-width:560px){ .ac-topbar{ font-size:10.5px; letter-spacing:.1em; padding:9px 12px; } }
