/**
 * Andalos Music - WooCommerce overrides
 */

.woocommerce .container,
.woocommerce-page .container {
	width: 100%;
	max-width: var(--container-max, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

.woocommerce .products .product { margin-bottom: 0; }
.woocommerce .breadcrumb { margin-bottom: 16px; }

/* Single product – price & quantity */
.single-product-price-wrap .price {
	font-size: 1.875rem;
	font-weight: 800;
	color: #DC2626;
}
.single-product-price-wrap .price del {
	color: #6b7280;
	font-size: 1rem;
}
.single-product-price-wrap .price ins {
	text-decoration: none;
}
.single-product-cart-form .quantity {
	display: flex;
	align-items: center;
	background: #050505;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.single-product-cart-form .quantity input {
	width: 3rem;
	background: transparent;
	border: none;
	color: #fff;
	text-align: center;
	font-size: 1.125rem;
}
.single-product-cart-form .quantity input:focus {
	outline: none;
	box-shadow: none;
}
.single-product-main .star-rating {
	color: #DC2626;
}
.single-product-main .star-rating span {
	color: #DC2626;
}

/* Variable product form (selects, variation price) */
.single-product-main .variations select,
.single-product-main .single_variation_wrap .quantity input {
	background: #050505;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 0.5rem;
}
.single-product-main .variations label {
	color: #e5e7eb;
}
.single-product-main .single_variation_wrap .price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #DC2626;
}
.single-product-main .single_variation_wrap .single_add_to_cart_button {
	background: #DC2626;
	color: #fff;
	font-weight: 700;
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	width: 100%;
	margin-top: 0.5rem;
}
.single-product-main .single_variation_wrap .single_add_to_cart_button:hover {
	background: #b91c1c;
	color: #fff;
}

/* Product category archive – ordering & toolbar */
.woocommerce-ordering select {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
}
.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
	border-color: #DC2626;
	color: #DC2626;
	outline: none;
}

/* Product card (category grid) – price */
.template-parts .price,
article .price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}
article .price .amount {
	color: inherit;
}
article .price ins {
	text-decoration: none;
	color: #DC2626;
}
article .price del {
	color: #9ca3af;
	font-size: 0.875rem;
}
article .price del .amount {
	color: inherit;
}

/* ==========================================================================
   Product category – text content (hero + description) – typography & layout
   ========================================================================== */
.product-cat-hero-text,
.product-cat-description {
	max-width: 100%;
}

.product-cat-content {
	line-height: 1.75;
	letter-spacing: 0.01em;
}

/* ---- Paragraphs ---- */
.product-cat-content p {
	margin: 0 0 1rem;
	color: inherit;
}
.product-cat-content p:last-child {
	margin-bottom: 0;
}

/* ---- Headings ---- */
.product-cat-content h1,
.product-cat-content h2,
.product-cat-content h3,
.product-cat-content h4,
.product-cat-content h5,
.product-cat-content h6 {
	margin: 1.75rem 0 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	word-break: break-word;
}
.product-cat-content h1:first-child,
.product-cat-content h2:first-child,
.product-cat-content h3:first-child,
.product-cat-content h4:first-child,
.product-cat-content h5:first-child,
.product-cat-content h6:first-child {
	margin-top: 0;
}
.product-cat-content h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
.product-cat-content h2 { font-size: 1.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.product-cat-content h3 { font-size: 1.25rem; color: #e5e7eb; }
.product-cat-content h4 { font-size: 1.125rem; color: #d1d5db; }
.product-cat-content h5 { font-size: 1.0625rem; color: #d1d5db; }
.product-cat-content h6 { font-size: 1rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Links ---- */
.product-cat-content a {
	color: #DC2626;
	text-decoration: none;
	word-break: break-word;
	transition: color 0.2s ease, opacity 0.2s ease;
}
.product-cat-content a:hover {
	color: #ef4444;
	text-decoration: underline;
}

/* ---- Lists ---- */
.product-cat-content ul,
.product-cat-content ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}
.product-cat-content ul {
	list-style: none;
	padding-left: 0;
}
.product-cat-content ul li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
}
.product-cat-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #DC2626;
}
.product-cat-content ol {
	list-style: none;
	counter-reset: product-cat-ol;
	padding-left: 0;
}
.product-cat-content ol li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.5rem;
	counter-increment: product-cat-ol;
}
.product-cat-content ol li::before {
	content: counter(product-cat-ol) ".";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: #DC2626;
	font-size: 0.95em;
}

/* ---- Strong & emphasis ---- */
.product-cat-content strong {
	font-weight: 700;
	color: #e5e7eb;
}
.product-cat-content em {
	font-style: italic;
	color: #d1d5db;
}

/* ---- Blockquote ---- */
.product-cat-content blockquote {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid #DC2626;
	background: rgba(255,255,255,0.04);
	border-radius: 0 8px 8px 0;
	color: #d1d5db;
	font-style: italic;
}
.product-cat-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ---- Tables ---- */
.product-cat-content table {
	width: 100%;
	max-width: 100%;
	margin: 1.25rem 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	word-break: break-word;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.product-cat-content thead {
	background: rgba(220, 38, 38, 0.2);
}
.product-cat-content thead th {
	padding: 0.875rem 1rem;
	text-align: right;
	font-weight: 700;
	color: #fff;
	font-size: 0.9375rem;
	border-bottom: 2px solid rgba(220, 38, 38, 0.5);
}
.product-cat-content tbody tr {
	background: rgba(255,255,255,0.03);
	transition: background 0.2s ease;
}
.product-cat-content tbody tr:nth-child(even) {
	background: rgba(255,255,255,0.06);
}
.product-cat-content tbody tr:hover {
	background: rgba(255,255,255,0.08);
}
.product-cat-content tbody td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	color: #d1d5db;
	font-size: 0.9375rem;
}
.product-cat-content tbody tr:last-child td {
	border-bottom: none;
}
.product-cat-content tbody td:first-child {
	font-weight: 600;
	color: #e5e7eb;
}

/* ---- Images ---- */
.product-cat-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.25rem 0;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.25);
	border: 1px solid rgba(255,255,255,0.06);
}
.product-cat-content img:first-child {
	margin-top: 0;
}
.product-cat-content p img {
	margin: 1rem 0;
}
/* Image inside figure (e.g. with caption) */
.product-cat-content figure {
	margin: 1.5rem 0;
	max-width: 100%;
}
.product-cat-content figure img {
	margin: 0;
	border-radius: 12px 12px 0 0;
}
.product-cat-content figcaption {
	margin: 0;
	padding: 0.75rem 1rem;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.06);
	border-top: none;
	border-radius: 0 0 12px 12px;
	font-size: 0.875rem;
	color: #9ca3af;
	text-align: center;
}

/* ---- Horizontal rule ---- */
.product-cat-content hr {
	margin: 1.75rem 0;
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ---- Code / pre ---- */
.product-cat-content code,
.product-cat-content kbd {
	padding: 0.2em 0.4em;
	background: rgba(255,255,255,0.08);
	border-radius: 6px;
	font-size: 0.9em;
	color: #e5e7eb;
	border: 1px solid rgba(255,255,255,0.06);
}
.product-cat-content pre {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	max-width: 100%;
	background: rgba(0,0,0,0.35);
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.08);
	font-size: 0.875rem;
	line-height: 1.6;
	color: #e5e7eb;
}
.product-cat-content pre code {
	padding: 0;
	background: none;
	border: none;
}

/* ---- Iframe (e.g. video) ---- */
.product-cat-content iframe {
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 1.25rem 0;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Hero variant: slightly lighter text and tighter spacing */
.product-cat-content--hero h2 { border-bottom-color: rgba(255,255,255,0.15); }
.product-cat-content--hero blockquote {
	background: rgba(255,255,255,0.06);
	border-left-color: rgba(220, 38, 38, 0.8);
}
.product-cat-content--bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 1.5rem;
}

/* RTL (Persian) – blockquote and list alignment */
[dir="rtl"] .product-cat-content blockquote {
	border-left: none;
	border-right: 4px solid #DC2626;
	border-radius: 8px 0 0 8px;
}
[dir="rtl"] .product-cat-content ul li {
	padding-left: 0;
	padding-right: 1.5rem;
}
[dir="rtl"] .product-cat-content ul li::before {
	left: auto;
	right: 0;
}
[dir="rtl"] .product-cat-content ol {
	padding-left: 0;
	padding-right: 0;
}
[dir="rtl"] .product-cat-content ol li {
	padding-left: 0;
	padding-right: 2rem;
}
[dir="rtl"] .product-cat-content ol li::before {
	left: auto;
	right: 0;
}
[dir="rtl"] .product-cat-content thead th,
[dir="rtl"] .product-cat-content tbody td {
	text-align: right;
}
[dir="rtl"] .product-cat-content figcaption {
	text-align: center;
}
