/*
Theme Name: Hozy76 Vintage Astra Child
Theme URI: https://example.local/
Description: Custom Astra child theme for Hozy76 Vintage & Antique Finds.
Author: Hozy76
Template: astra
Version: 1.0.0
Text Domain: hozy76-vintage
*/

/* =========================================================
   HOZY76 VINTAGE & ANTIQUE FINDS
   Premium dark vintage WooCommerce styling
   ========================================================= */

:root {
  --hozy-bg: #121212;
  --hozy-surface: #1b1b1b;
  --hozy-surface-2: #222222;
  --hozy-border: #2e2e2e;
  --hozy-text: #d6d1c8;
  --hozy-heading: #e6dccb;
  --hozy-muted: #b8b2a8;
  --hozy-accent: #b08a4a;
  --hozy-accent-hover: #d4b06a;
}

/* =========================================================
   BASE
   ========================================================= */

html,
body {
  background: var(--hozy-bg);
}

body,
.ast-separate-container,
.site-content {
  color: var(--hozy-text);
  background: var(--hozy-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
  color: var(--hozy-heading);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

p,
li,
label,
input,
textarea,
select {
  color: var(--hozy-text);
}

a {
  color: var(--hozy-accent);
}

a:hover,
a:focus {
  color: var(--hozy-accent-hover);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-desktop .ast-primary-header-bar {
  background: var(--hozy-bg) !important;
  border-bottom: 1px solid var(--hozy-border) !important;
}

.site-title a,
.site-title,
.ast-site-title-wrap .site-title a {
  color: var(--hozy-heading) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.site-description {
  color: var(--hozy-muted) !important;
}

.main-header-menu > .menu-item > .menu-link,
.ast-header-account-wrap,
.ast-site-header-cart .ast-addon-cart-wrap,
.ast-menu-cart-outline .ast-cart-menu-wrap {
  color: var(--hozy-heading) !important;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link,
.ast-header-account-wrap:hover,
.ast-site-header-cart:hover .ast-addon-cart-wrap {
  color: var(--hozy-accent-hover) !important;
}

/* =========================================================
   CONTENT CARDS / PAGES
   ========================================================= */

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.site-main > article,
.woocommerce-page .site-main,
.woocommerce .site-main {
  background: var(--hozy-surface);
  border: 1px solid var(--hozy-border);
  border-radius: 10px;
}

.entry-content,
.entry-summary {
  color: var(--hozy-text);
}

/* =========================================================
   BUTTONS
   ========================================================= */

button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
input[type="submit"] {
  background: var(--hozy-accent) !important;
  color: #111111 !important;
  border: 1px solid var(--hozy-accent) !important;
  border-radius: 6px !important;
  font-weight: 600;
  transition: 0.2s ease;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
input[type="submit"]:hover {
  background: var(--hozy-accent-hover) !important;
  border-color: var(--hozy-accent-hover) !important;
  color: #111111 !important;
}

/* =========================================================
   WOOCOMMERCE PRODUCT GRID
   ========================================================= */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--hozy-surface);
  border: 1px solid var(--hozy-border);
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: var(--hozy-accent);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  color: var(--hozy-heading);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hozy-accent-hover) !important;
  font-weight: 600;
}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.woocommerce div.product {
  color: var(--hozy-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--hozy-surface) !important;
  border-color: var(--hozy-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--hozy-text) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hozy-accent-hover) !important;
}

/* =========================================================
   FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--hozy-surface-2) !important;
  color: var(--hozy-text) !important;
  border: 1px solid var(--hozy-border) !important;
  border-radius: 6px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--hozy-accent) !important;
  box-shadow: 0 0 0 1px var(--hozy-accent);
}

/* =========================================================
   BASKET / CHECKOUT / ACCOUNT
   ========================================================= */

.woocommerce table.shop_table,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--hozy-surface);
  color: var(--hozy-text);
  border-color: var(--hozy-border);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--hozy-border);
  color: var(--hozy-text);
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background: var(--hozy-surface-2);
  color: var(--hozy-text);
  border-top-color: var(--hozy-accent);
}

/* =========================================================
   ASTRA FOOTER
   ========================================================= */

/*
 * Make all Astra footer rows use the same dark background.
 */
.site-footer,
.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
  background: #0f0f0f !important;
}

/*
 * Remove the light strips/gaps Astra adds around footer rows.
 */
.site-footer .ast-builder-grid-row-container-inner {
  background: #0f0f0f !important;
}

/*
 * Footer Menu outer component.
 */
.site-footer .ast-builder-menu-1,
.site-footer .footer-nav-wrap {
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
}

/*
 * Astra Footer Menu actual UL.
 */
.site-footer .footer-nav-wrap .astra-footer-horizontal-menu,
.site-footer .ast-builder-menu-1 .main-header-menu {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 auto !important;
  padding: 18px 24px !important;

  list-style: none !important;
}

/*
 * Footer menu items.
 */
.site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li,
.site-footer .ast-builder-menu-1 .main-header-menu > li {
  display: block !important;
  float: none !important;

  margin: 0 14px !important;
  padding: 0 !important;
}

/*
 * Footer links.
 */
.site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li > a,
.site-footer .ast-builder-menu-1 .main-header-menu > li > a {
  display: inline-block !important;

  padding: 0 !important;
  margin: 0 !important;

  color: var(--hozy-accent) !important;
  background: transparent !important;

  font-size: 15px !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/*
 * Footer links hover.
 */
.site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li > a:hover,
.site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li > a:focus,
.site-footer .ast-builder-menu-1 .main-header-menu > li > a:hover,
.site-footer .ast-builder-menu-1 .main-header-menu > li > a:focus {
  color: var(--hozy-accent-hover) !important;
  text-decoration: underline !important;
}

/*
 * Copyright row.
 */
.site-footer .site-below-footer-wrap {
  border-top: 1px solid rgba(176, 138, 74, 0.25) !important;
}

/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .site-footer .footer-nav-wrap .astra-footer-horizontal-menu,
  .site-footer .ast-builder-menu-1 .main-header-menu {
    flex-wrap: wrap !important;
    padding: 16px 18px !important;
  }

  .site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li,
  .site-footer .ast-builder-menu-1 .main-header-menu > li {
    margin: 6px 10px !important;
  }

}

@media (max-width: 544px) {

  .site-footer .footer-nav-wrap .astra-footer-horizontal-menu,
  .site-footer .ast-builder-menu-1 .main-header-menu {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .site-footer .footer-nav-wrap .astra-footer-horizontal-menu > li,
  .site-footer .ast-builder-menu-1 .main-header-menu > li {
    margin: 0 !important;
  }

}
/* =========================================================
   HOZY CATEGORY HUB
   Categories page cards
   ========================================================= */

.hozy-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 32px 0 42px;
}

.hozy-category-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 190px;
	padding: 28px 24px;
	background: var(--hozy-surface);
	border: 1px solid var(--hozy-border);
	border-radius: 10px;
	text-decoration: none !important;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.hozy-category-card:hover,
.hozy-category-card:focus {
	transform: translateY(-4px);
	border-color: var(--hozy-accent);
	background: var(--hozy-surface-2);
}

.hozy-category-card h3 {
	margin: 0 0 12px;
	color: var(--hozy-heading);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 26px;
	line-height: 1.15;
}

.hozy-category-card p {
	margin: 0;
	color: var(--hozy-muted);
	font-size: 15px;
	line-height: 1.6;
}

.hozy-category-card:hover h3,
.hozy-category-card:focus h3 {
	color: var(--hozy-accent-hover);
}

/* Tablet */
@media (max-width: 1100px) {
	.hozy-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 640px) {
	.hozy-category-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hozy-category-card {
		min-height: auto;
		padding: 22px 20px;
	}

	.hozy-category-card h3 {
		font-size: 23px;
	}
}
/* =========================================================
   CATEGORY CARD IMAGE FIX
   ========================================================= */

.hozy-category-card {
	display: block;
	padding: 0;
	overflow: hidden;
	min-height: 0;
}

.hozy-category-card-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0;
	border: 0;
}

.hozy-category-card-content {
	padding: 22px 20px 24px;
}

.hozy-category-card-content h3 {
	margin: 0 0 10px;
}

.hozy-category-card-content p {
	margin: 0;
}

/* All cards stay aligned */
.hozy-category-grid {
	align-items: stretch;
}

.hozy-category-card {
	height: 100%;
}