/**
 * Theme Name:   Astra Child
 * Theme URI:    https://wpastra.com/
 * Description:  A child theme for the Astra WordPress theme. This theme inherits all functionality from the parent theme and allows you to customize without losing changes when the parent theme updates.
 * Author:       Vitalii Hura
 * Author URI:   https://t.me/VitaliiHura
 * Template:     astra
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-child
 * Domain Path:  /languages
 * Tags:         custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
 */

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
	margin: 0;
    padding: 12px;
    display: inline-block;
    width: 100%;
}

/* Simplify checkout form - hide unnecessary fields */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .create-account {
	display: none !important;
}

/* Hide shipping section completely */
.woocommerce-checkout .woocommerce-shipping-fields {
	display: none !important;
}

/* Ensure order notes are visible */
.woocommerce-checkout .woocommerce-additional-fields {
	display: block !important;
}

@media (max-width: 991px) {
	/* --- Top Bar Optimization --- */

	/* Hide top nav items (Our brands, About, etc.) */
	.ceit-nav-list--top .ceit-nav-list__item {
		display: none !important;
	}

	/* KEEP "Track your order" visible */
	.ceit-nav-list--top .ceit-nav-list__item:last-child {
		display: none !important;
	}

	/* Hide Address Info */
	.ceit-top-bar__showroom {
		display: none !important;
	}

	/* Compact Layout for Top Bar */
	.ceit-top-bar__container {
		justify-content: center !important;
		gap: 10px;
	}

	/* --- Nav Bar Optimization --- */

	/* Hide the secondary navigation bar completely on mobile */
	.ceit-nav-bar {
		display: none !important;
	}
}

/* Product Attributes Table Styling */
table.shop_attributes {
	border-collapse: collapse;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
	border: 1px solid #eee;
	border-radius: 4px;
	/* Soft rounding if supported */
	overflow: hidden;
}

table.shop_attributes th,
table.shop_attributes td {
	padding: 12px !important;
	/* Increased side padding to prevent sticking to line */
	border-bottom: 1px solid #eee !important;
	text-align: left;
	vertical-align: middle;
}

table.shop_attributes th {
	width: 30%;
	/* Ensure labels have enough space but don't dominate */
	font-weight: 600;
	color: #333;
	font-style: normal !important;
	/* Override theme italics */
	background-color: #f8f8f8;
	/* Distinguish header */
	text-transform: capitalize;
}

table.shop_attributes td {
	color: #555;
	font-style: normal !important;
	/* Override theme italics */
}

table.shop_attributes td p {
	margin: 0;
	/* Remove default paragraph margins */
	padding: 0;
}

/* Attributes Chips/Pills Styles */
.att-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.att-pill {
	display: inline-block;
	padding: 4px 10px;
	background-color: #f0f0f0;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	font-size: 0.9em;
	color: #444;
	white-space: nowrap;
}

/* Remove border from last row */
table.shop_attributes tr:last-child th,
table.shop_attributes tr:last-child td {
	border-bottom: none;
}

/* Zebra striping (optional, but good for data) */
table.shop_attributes tr:nth-child(even) th,
table.shop_attributes tr:nth-child(even) td {
	background-color: #fcfcfc;
}

/* Mobile responsive for attributes */
@media (max-width: 480px) {

	table.shop_attributes th,
	table.shop_attributes td {
		display: block;
		width: 100%;
		padding: 8px 15px;
	}

	table.shop_attributes th {
		background-color: transparent;
		color: #888;
		font-size: 0.9em;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		padding-bottom: 0;
		border-bottom: none;
	}

	table.shop_attributes td {
		padding-top: 5px;
		font-size: 1.05em;
		color: #222;
		border-bottom: 1px solid #eee;
	}
}

/* Related Products Section Spacing */
.related.products {
	margin-top: 40px;
	margin-bottom: 40px;
}