/**
 * Sections Page Styles
 *
 * Styles for the collapsible menu sections page template.
 *
 * @package    Golden_Ice_Store
 * @subpackage Styles
 * @since      1.0.0
 */

/* ========================================
   Menu Section Header
   ======================================== */

.menu-section-header {
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	background-color: #dddddd;
	user-select: none;
}

.menu-section-header:hover {
	background-color: #f8f9fa;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-section-header:focus {
	outline: 2px solid #0056b3;
	outline-offset: 2px;
}

.cursor-pointer {
	cursor: pointer;
}

/* ========================================
   Menu Section Title
   ======================================== */

.menu-section-title {
	font-weight: 500;
	color: #2E527C;
}

/* ========================================
   Arrow Animation
   ======================================== */

.menu-section-arrow {
	transition: transform 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.menu-section-header[aria-expanded="true"] .menu-section-arrow {
	transform: rotate(180deg);
}

/* ========================================
   Collapsible Content
   ======================================== */

.menu-section-content {
	background-color: #fafafa;
}

/* ========================================
   Category Icons
   ======================================== */

.product-cat-icon {
	margin-inline-end: 10px;
	width: 64px;
	height: auto;
	object-fit: contain;
	flex-shrink: 0;
}

/* ========================================
   List Items
   ======================================== */

.list-group-item {
	background-color: transparent;
	border: none;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	transition: background-color 0.2s ease;
}

.list-group-item:hover {
	background-color: rgba(0, 86, 179, 0.05);
}

.list-group-item a {
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.list-group-item a:hover {
	color: #0056b3 !important;
	padding-left: 0.25rem;
}

.list-group-item a:focus {
	outline: 2px solid #0056b3;
	outline-offset: 2px;
}

/* ========================================
   Spacing and Layout
   ======================================== */

.navigation-menus {
	margin-top: 2rem;
}

.menu-section-wrapper:last-child {
	margin-bottom: 0 !important;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
	.menu-section-header {
		padding: 0.75rem !important;
		font-size: 0.95rem;
	}

	.ps-4 {
		padding-left: 1.5rem !important;
	}

	.product-cat-icon {
		width: 32px;
	}

	.menu-section-title {
		font-size: 0.9rem;
	}

	.navigation-menus {
		margin-top: 1.5rem;
	}
}

@media (max-width: 576px) {
	.menu-section-header {
		padding: 0.5rem !important;
	}

	.product-cat-icon {
		width: 24px;
		margin-inline-end: 8px;
	}

	.ps-3 {
		padding-left: 0.75rem !important;
	}

	.ps-4 {
		padding-left: 1.25rem !important;
	}
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
	.menu-section-header {
		border: 1px solid #000;
		background-color: #fff !important;
	}

	.menu-section-arrow {
		display: none;
	}

	.collapse {
		display: block !important;
		height: auto !important;
	}
}
