/* Swadhan Custom — Elementor Widget Suite styles.
   Uses the same CSS variables the theme defines (--swadhan-color-*, --swadhan-font-*)
   so widgets automatically match whatever is set in Theme Options. */

.swadhan-gallery-main img { width: 100%; height: auto; display: block; }
.swadhan-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.swadhan-thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; }
.swadhan-thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }
.swadhan-thumb.active { border-color: var(--swadhan-color-primary, #601E1E); }
.swadhan-thumb-video { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #000; color: #fff; }

.swadhan-price .amount { font-family: var(--swadhan-font-heading); }
.swadhan-price del { opacity: .55; margin-right: 8px; }
.swadhan-stock-urgency { color: #B32D2E; font-size: 13px; font-weight: 600; margin-top: 6px; }

.swadhan-product-title { font-family: var(--swadhan-font-heading); margin: 0 0 8px; }
.swadhan-product-meta { display: flex; gap: 16px; font-size: 13px; opacity: .75; margin-bottom: 10px; }
.swadhan-stock-instock { color: #2e7d32; }
.swadhan-stock-outofstock { color: #b32d2e; }
.swadhan-product-desc { line-height: 1.6; }

.swadhan-add-to-cart-wrap .single_add_to_cart_button {
	background: var(--swadhan-color-primary, #601E1E);
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-family: var(--swadhan-font-body);
	font-weight: 600;
	cursor: pointer;
}

/* ---- Related Products / Product Grid (shared card style) ---- */
.swadhan-related-grid, .swadhan-product-grid { display: grid; }
.swadhan-related-card, .swadhan-grid-card {
	display: block; background: #fff; border: 1px solid var(--swadhan-color-border, #e5dcd0);
	text-decoration: none; color: inherit; transition: box-shadow .2s ease;
}
.swadhan-related-card:hover, .swadhan-grid-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.swadhan-related-card img, .swadhan-grid-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.swadhan-related-card-body, .swadhan-grid-card-body { padding: 12px; }
.swadhan-related-title, .swadhan-grid-title { font-size: 14px; margin-bottom: 4px; }
.swadhan-related-price, .swadhan-grid-price { font-weight: 600; color: var(--swadhan-color-primary, #601E1E); }
.swadhan-pagination { margin-top: 24px; display: flex; gap: 8px; }
.swadhan-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 4px; }
.swadhan-pagination .current { background: var(--swadhan-color-primary, #601E1E); color: #fff; }

/* ---- Filter Sidebar ---- */
.swadhan-filter-sidebar { display: flex; flex-direction: column; gap: 20px; }
.swadhan-filter-group h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.swadhan-filter-checkbox { display: block; font-size: 14px; margin-bottom: 6px; }
.swadhan-filter-sidebar input[type="number"] { width: 45%; padding: 6px; margin-right: 4%; }
.swadhan-filter-apply {
	background: var(--swadhan-color-primary, #601E1E); color: #fff; border: none;
	padding: 10px 20px; cursor: pointer; border-radius: 6px;
}

/* ---- Breadcrumbs ---- */
.swadhan-breadcrumbs { font-size: 13px; opacity: .75; margin-bottom: 16px; }

/* ---- Reviews ---- */
.swadhan-reviews-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.swadhan-review-count { font-size: 13px; opacity: .7; }

/* ---- Product Meta (delivery check) ---- */
.swadhan-meta-row { margin-bottom: 10px; font-size: 14px; }
.swadhan-delivery-check { display: flex; gap: 8px; align-items: center; }
.swadhan-pincode-input { padding: 8px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 6px; width: 140px; }
.swadhan-pincode-check-btn { padding: 8px 16px; border: none; background: var(--swadhan-color-text, #2b2b2b); color: #fff; border-radius: 6px; cursor: pointer; }
.swadhan-pincode-result { font-size: 13px; }

/* ---- Custom Form ---- */
.swadhan-form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.swadhan-custom-form input[type="text"],
.swadhan-custom-form input[type="email"],
.swadhan-custom-form input[type="tel"],
.swadhan-custom-form select,
.swadhan-custom-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0);
	border-radius: 6px; font-family: var(--swadhan-font-body); box-sizing: border-box;
}
.swadhan-form-submit {
	background: var(--swadhan-color-primary, #601E1E); color: #fff; border: none;
	padding: 12px 28px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.swadhan-form-response { margin-top: 10px; font-size: 14px; }

/* ==================== CHECKOUT — Address Widget ==================== */
.swadhan-address-heading { margin-top: 0; }
.swadhan-guest-note { font-size: 13px; background: #fff8e1; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.swadhan-field-row { margin-bottom: 16px; }
.swadhan-field-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.swadhan-field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.swadhan-checkout-address-widget input {
	width: 100%; padding: 10px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0);
	border-radius: 6px; font-family: var(--swadhan-font-body); box-sizing: border-box;
}
.swadhan-checkout-address-widget input[readonly] { background: var(--swadhan-color-bg, #f9f9f9); }
.swadhan-pincode-status { font-size: 12px; margin-left: 8px; }

.swadhan-address-summary { background: #fff; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.swadhan-address-summary-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.swadhan-change-address { background: none; border: none; color: var(--swadhan-color-primary, #601E1E); font-weight: 600; cursor: pointer; }
.swadhan-address-summary-body { font-size: 14px; line-height: 1.7; opacity: .85; }
.swadhan-address-badge {
	display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
	background: var(--swadhan-color-bg, #f9f9f9); border: 1px solid var(--swadhan-color-border, #e5dcd0);
	padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.swadhan-address-picker { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.swadhan-address-picker-card {
	display: block; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 10px; padding: 12px 16px;
	cursor: pointer; font-size: 14px; line-height: 1.6;
}
.swadhan-address-picker-card input[type="radio"] { margin-right: 8px; }
.swadhan-add-new-address-btn { align-self: flex-start; background: none; border: 1px dashed var(--swadhan-color-primary, #601E1E); color: var(--swadhan-color-primary, #601E1E); padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.swadhan-checkbox-inline { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 24px; }
.swadhan-save-address-row { display: flex; align-items: flex-end; }

/* ==================== CHECKOUT — Cart Items Widget ==================== */
.swadhan-order-item { display: flex; gap: 14px; padding: 14px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--swadhan-color-border, #e5dcd0); }
.swadhan-order-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.swadhan-order-item-title { font-weight: 600; margin-bottom: 6px; }
.swadhan-order-item-qty { font-size: 13px; opacity: .7; }
.swadhan-order-item-price { font-weight: 600; margin-top: 6px; }
.swadhan-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 6px; overflow: hidden; }
.swadhan-qty-stepper button { width: 28px; height: 28px; border: none; background: var(--swadhan-color-bg, #f9f9f9); cursor: pointer; font-size: 16px; }
.swadhan-qty-stepper input { width: 40px; text-align: center; border: none; border-left: 1px solid var(--swadhan-color-border, #e5dcd0); border-right: 1px solid var(--swadhan-color-border, #e5dcd0); height: 28px; }
.swadhan-coupon-row { display: flex; gap: 8px; margin: 16px 0; align-items: center; }
.swadhan-coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 6px; }
.swadhan-coupon-row button { padding: 10px 18px; border: none; background: var(--swadhan-color-text, #2b2b2b); color: #fff; border-radius: 6px; cursor: pointer; }
.swadhan-gst-checkbox { display: block; margin: 12px 0; font-size: 14px; }
.swadhan-gst-fields { display: flex; gap: 10px; margin-bottom: 12px; }
.swadhan-gst-fields input { flex: 1; padding: 8px 12px; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 6px; }

/* ==================== CHECKOUT — Payment Widget ==================== */
.swadhan-hide-place-order #place_order { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ==================== CHECKOUT — Price Sidebar Widget ==================== */
.swadhan-price-details { background: #fff; border: 1px solid var(--swadhan-color-border, #e5dcd0); border-radius: 10px; padding: 20px; }
.swadhan-price-details.swadhan-sticky { position: sticky; top: 20px; }
.swadhan-price-details h3 { margin-top: 0; font-size: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--swadhan-color-border, #e5dcd0); }
.swadhan-price-row { display: flex; justify-content: space-between; font-size: 14px; margin: 10px 0; }
.swadhan-price-discount span:last-child { color: #2e7d32; }
.swadhan-price-total { font-weight: 700; font-size: 16px; border-top: 1px dashed var(--swadhan-color-border, #e5dcd0); padding-top: 12px; margin-top: 12px; }
.swadhan-savings-banner { background: #e8f5e9; color: #2e7d32; padding: 10px; border-radius: 8px; font-size: 13px; text-align: center; margin-top: 14px; font-weight: 600; }
.swadhan-sidebar-place-order {
	width: 100%; background: var(--swadhan-color-primary, #601E1E); color: #fff; border: none;
	padding: 14px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 16px;
}
