/*
Theme Name: Resham Saga Child Theme
Template: kadence
Description: Custom child theme for Resham Saga WooCommerce store with enhanced product page design
Version: 1.0.3
Author: Resham Development Team
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resham-child
Domain Path: /languages
*/

/* Custom Resham Theme Variables */
:root {
	--resham-primary-color: #C97899;
	--resham-primary-dark: #b8647f;
	--resham-bg-light: #f9f7f4;
	--resham-text-dark: #333333;
	--resham-text-light: #666666;
	--resham-border-color: #e0e0e0;
	--resham-success-color: #27ae60;
	--resham-error-color: #e74c3c;
}

/* Base Typography */
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--resham-text-dark);
	line-height: 1.6;
}

/* Ensure product pages look good */
.woocommerce .entry-content {
	margin: 0;
}

.woocommerce-breadcrumb {
	margin: 20px 0;
	font-size: 13px;
	color: var(--resham-text-light);
}

/* Customize WooCommerce messages */
.woocommerce-message,
.woocommerce-info {
	background: #f5f5f5;
	border-left: 4px solid var(--resham-primary-color);
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 0;
}

.woocommerce-error {
	background: #fef5f5;
	border-left-color: var(--resham-error-color);
}

/* Product reviews section */
#reviews {
	margin-top: 60px;
}

#reviews h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--resham-text-dark);
	margin-bottom: 30px;
}

/* ============================================
   HAMBURGER BUTTON — ACTIVE/FOCUS STATE FIX
   Prevents Kadence palette color from being
   applied when aria-expanded=true is set.
   ============================================ */
.menu-toggle-open,
.menu-toggle-open:hover,
.menu-toggle-open:focus,
.menu-toggle-open:active,
.menu-toggle-open[aria-expanded="true"],
.drawer-toggle:focus,
.drawer-toggle:active {
	-webkit-tap-highlight-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
	color: inherit !important;
}

/* ============================================
   MOBILE TAP TARGET IMPROVEMENTS
   Ensures interactive elements meet the 44×44px
   minimum touch target size on mobile devices.
   ============================================ */

@media (max-width: 1024px) {
	/* Hamburger menu toggle */
	.menu-toggle-open,
	.kadence-menu-toggle,
	.header-mobile-toggle,
	button.menu-toggle {
		min-width: 44px !important;
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	/* Search toggle button */
	.search-toggle-open,
	.kadence-search-toggle,
	.header-search-wrap > button,
	.search-toggle {
		min-width: 44px !important;
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 10px !important;
	}

	/* WooCommerce Blocks quantity +/- buttons */
	.wc-block-components-quantity-selector button,
	.wc-block-components-quantity-selector__button,
	.quantity .plus,
	.quantity .minus {
		min-width: 44px !important;
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
}

/* ============================================
   GLOBAL PAGE CONTENT PADDING
   Ensures all page content has breathing room
   from the screen/viewport edges on all devices.
   Targets Kadence column wrappers + WooCommerce
   product containers.
   ============================================ */

/* PDP padding — desktop */
.woocommerce div.product {
	padding-left: 16px !important;
	padding-right: 16px !important;
	box-sizing: border-box !important;
}

/* Don't double-pad inner summary */
.woocommerce div.product .summary.entry-summary {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Breadcrumb — above-content area */
.woocommerce-breadcrumb {
	padding-left: 16px;
	padding-right: 16px;
}

/* When breadcrumb sits alongside title in Kadence above-content row */
.kadence-inner-column-inner .woocommerce-breadcrumb {
	font-size: 0.8em;
	color: #888;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.kadence-inner-column-inner .woocommerce-breadcrumb a {
	color: #888;
	text-decoration: none;
}

.kadence-inner-column-inner .woocommerce-breadcrumb a:hover {
	color: #555;
}

/* Breadcrumb injected below Extra Title Area on single product pages */
.resham-product-breadcrumb {
	padding: 6px 0.5em 0;
	margin: 0;
}

.resham-product-breadcrumb .woocommerce-breadcrumb {
	font-size: 0.8em;
	color: #999;
	margin: 0;
	padding: 0;
}

.resham-product-breadcrumb .woocommerce-breadcrumb a {
	color: #999;
	text-decoration: none;
}

.resham-product-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #555;
}

/* General pages/posts */
.site-main .entry-content,
.site-main .page-content {
	padding-left: 20px;
	padding-right: 20px;
}

/* ── PDP padding — uniform 0.5em on all screens ── */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .entry-summary,
.woocommerce div.product .woocommerce-tabs,
.woocommerce-breadcrumb,
.site-main .entry-content,
.site-main .page-content {
	padding-left: 0.5em !important;
	padding-right: 0.5em !important;
	box-sizing: border-box !important;
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #999;
}
