/**
 * Jannah + Easy Digital Downloads visual integration.
 * Targets EDD's own markup/classes and re-styles them to match the theme
 * (same look the theme already gives WooCommerce).
 */

/* ---------- Downloads archive grid ---------- */
.tie-edd-archive .edd_downloads_list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.tie-edd-archive .edd_download {
	box-sizing: border-box;
	padding: 10px;
	margin-bottom: 20px;
	list-style: none;
}

.tie-edd-archive .edd_download_columns_2 .edd_download { width: 50%; }
.tie-edd-archive .edd_download_columns_3 .edd_download { width: 33.3333%; }
.tie-edd-archive .edd_download_columns_4 .edd_download { width: 25%; }

@media (max-width: 767px) {
	.tie-edd-archive .edd_download_columns_2 .edd_download,
	.tie-edd-archive .edd_download_columns_3 .edd_download,
	.tie-edd-archive .edd_download_columns_4 .edd_download {
		width: 50%;
	}
}

.tie-edd-archive .edd_download_inner {
	background: var(--content-bg, #fff);
	border: 1px solid var(--border-color, #eee);
	border-radius: var(--tie-border-radius, 4px);
	padding: 15px;
	height: 100%;
	transition: box-shadow .2s ease;
}

.tie-edd-archive .edd_download_inner:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.tie-edd-archive .edd_download_image {
	display: block;
	margin-bottom: 12px;
	border-radius: var(--tie-border-radius, 4px);
	overflow: hidden;
}

.tie-edd-archive .edd_download_image img {
	width: 100%;
	height: auto;
	display: block;
}

.tie-edd-archive .edd_download_title,
.tie-edd-archive .edd_download_title a {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--heading-color, #222);
}

.tie-edd-archive .edd_price {
	display: block;
	font-weight: 700;
	color: var(--brand-color);
	margin-bottom: 10px;
}

/* Buy-now / add-to-cart button reusing the theme's .button look */
.tie-edd-archive .edd_purchase_div .edd-add-to-cart,
.tie-edd-single .edd_purchase_div .edd-add-to-cart,
.tie-edd-related .edd_purchase_div .edd-add-to-cart {
	display: inline-block;
	padding: 10px 22px;
	background: var(--brand-color);
	color: var(--bright-color, #fff);
    border: 1px dashed #00000014;
	border-radius: var(--tie-border-radius, 4px);
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}

.tie-edd-archive .edd_purchase_div .edd-add-to-cart:hover,
.tie-edd-single .edd_purchase_div .edd-add-to-cart:hover,
.tie-edd-related .edd_purchase_div .edd-add-to-cart:hover {
	opacity: .85;
}

/* ---------- Single download page ---------- */
.tie-edd-single .edd_download_purchase_form {
	margin: 20px 0;
	padding: 20px;
	background: var(--sidebar-bg, #f7f7f7);
	border-radius: var(--tie-border-radius, 4px);
}
.tie-edd-single {
padding: 30px !important;
}
.tie-edd-single .edd_price {
	font-size: 22px;
	font-weight: 700;
	color: var(--brand-color);
    
}

.tie-edd-related {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color, #eee);
}

.tie-edd-related .related-title {
	margin-bottom: 15px;
}

/* ---------- Header mini-cart (dropdown reuses the theme's own
   .shopping-cart-details / .cart-list classes, already styled by the
   theme, no extra rules needed there) ---------- */
.edd-shopping-cart-icon .edd-cart-dropdown .product-title a {
	color: inherit;
}
