/*
Theme Name: suakhoadientu
Description: Theme for suakhoadientu website with WooCommerce integration
Version: 1.0
Author: coc2coc
Text Domain: suakhoadientu
*/

/* Navigation Styles */

.link-green, .link-green:hover, .link-green:visited {
	color:#16a34a !important;
	text-decoration:none;
}
.text-green{
	color:#16a34a !important
}
.text-red {
    color: red !important;
}
.link-gray, .link-gray:hover, .link-gray:visited{
	color: rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important;
	text-decoration:none;
}

.h7{
    font-size: 0.8rem;
}
.bg-green{
	background:#16a34a !important
}

.nav-link {
	display: block;
	padding: 1rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 6px;
	position: relative;
}

.nav-link:hover {
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

/* Reset and base styles */
* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
}
/* Bootstrap-like utility classes */
.bg-success {
	background-color: #16a34a !important;
}
.text-success {
	color: #16a34a !important;
}
.border-success {
	border-color: #16a34a !important;
}
.btn-success {
	background-color: #16a34a;
	border-color: #16a34a;
}
.btn-success:hover {
	background-color: #15803d;
	border-color: #15803d;
}
.cursor-pointer {
	cursor: pointer;
}
.custom-hover-bg:hover {
	background-color: rgba(0, 0, 0, 0.1) !important;
}
.custom-hover-shadow:hover {
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}
.custom-hover-text-success:hover {
	color: #16a34a !important;
}
.custom-hover-translate:hover {
	transform: translateY(-5px);
}
.transition {
	transition: all 0.3s ease;
}
.tracking-wider {
	letter-spacing: 0.05em;
}
.fw-black {
	font-weight: 900;
}
.hero-section {
	position: relative;
}
.hero-content {
	z-index: 2;
	padding: 5rem 0;
}
.max-w-2xl {
	max-width: 42rem;
}
.product-image {
	transition: transform 0.3s ease;
}
.product-image-container:hover .product-image {
	transform: scale(1.1);
}
.icon-circle {
	width: 64px;
	height: 64px;
}
.dropdown-menu .custom-dropdown a {
	color: #343a40 !important;
	text-decoration: none;
	display: block;
	transition: all 0.2s ease;
	padding: 5px !important;
}
.custom-dropdown:hover .dropdown-menu {
	display: block;
	min-width: 200px;
}
.bg-success-subtle {
	background-color: rgba(22, 163, 74, 0.1) !important;
}
.border-success-subtle {
	border-color: rgba(22, 163, 74, 0.2) !important;
}
.text-success-subtle {
	color: rgba(22, 163, 74, 0.8) !important;
}
.min-vh-100 {
	min-height: 100vh;
}
.min-h-120 {
  min-height: 120px !important;
}
.z-1 {
	z-index: 1;
}
.z-3 {
	z-index: 3;
}
.sticky-top {
	position: sticky;
	top: 0;
}
.shadow-sm {
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.rounded-4 {
	border-radius: 1rem !important;
}
.rounded-pill {
	border-radius: 50rem !important;
}
/* Hot products section styles */
.hot-products-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.hot-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 992px) {
	.hot-products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.hot-product-card {
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}
.hot-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}
.product-image-wrapper {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 100%;
	overflow: hidden;
}
.product-image-wrapper img,
.product-image-wrapper .wp-post-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.product-image-wrapper:hover img,
.product-image-wrapper:hover .wp-post-image {
	transform: scale(1.08);
}
.badge-hot {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: #dc2626;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	z-index: 2;
}
.product-details .icon-check {
	color: #16a34a;
	font-weight: 700;
	margin-right: 0.35rem;
}
.product-details h3 {
	font-size: 1.1rem;
}
.product-details ul {
	padding-left: 0;
}
.product-details ul li {
	list-style: none;
}
.product-details .btn {
	font-size: 0.9rem;
}
.product-details .btn-outline-success {
	border-color: #16a34a;
	color: #16a34a;
}
.product-details .btn-outline-success:hover {
	background: #16a34a;
	color: #fff;
}
/* ===== WooCommerce Category Page Style ===== */
.woocommerce .shop-sidebar {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
	padding: 1.15rem;
}
.woocommerce .sidebar-title {
	font-size: 1rem;
	font-weight: 700;
	color: #16a34a;
	margin-bottom: 1rem;
}
.woocommerce .sidebar-icon {
	font-size: 1rem;
}
.woocommerce .product-category-list h5 {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: #16a34a;
	margin-bottom: 0.75rem;
}
.woocommerce .product-category-list ul {
	padding-left: 0;
	margin: 0;
}
.woocommerce .product-category-list li {
	list-style: none;
	margin-bottom: 0.35rem;
}
.woocommerce .product-category-list a {
	display: block;
	padding: 0.48rem 0.65rem;
	border-radius: 0.65rem;
	text-decoration: none;
	color: #4b5563;
	font-weight: 500;
	transition: all 0.2s ease;
}
.woocommerce .product-category-list li.current-cat > a,
.woocommerce .product-category-list li.current-cat-parent > a,
.woocommerce .product-category-list a:hover {
	background: #d1fae5;
	color: #047857;
	font-weight: 700;
}
.woocommerce .shop-header h1 {
	font-size: 2.8rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.5rem;
}
.woocommerce .shop-header .lead {
	color: #4b5563;
}
.woocommerce .product-card {
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}
.woocommerce .product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}
.woocommerce .product-image-wrapper {
	aspect-ratio: 4/3;
	overflow: hidden;
	position: relative;
}
.woocommerce .product-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.woocommerce .product-card:hover .product-image-wrapper img {
	transform: scale(1.08);
}
.woocommerce .product-brand {
	font-size: 0.79rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	font-weight: 700;
}
.woocommerce .product-title a {
	font-size: 1.18rem;
	font-weight: 700;
	color: #0f172a;
}
.woocommerce .product-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: #dc2626;
}
.woocommerce .product-price del {
	display: block;
	color: #6b7280;
	font-size: 0.92rem;
	margin-top: 0.15rem;
}
.woocommerce .product-actions .button {
	width: 100%;
	border-radius: 0.65rem;
	padding: 0.58rem;
	font-weight: 600;
}
.woocommerce .product-badge-onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background-color: #dc2626;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	text-transform: uppercase;
}
.woocommerce .product-overlay {
	background: rgba(22, 163, 74, 0.86);
}
.woocommerce .page-numbers li a,
.woocommerce .page-numbers li span {
	border: 1px solid #d1d5db;
	border-radius: 0.65rem;
	padding: 0.38rem 0.65rem;
	color: #0d6efd;
}
.woocommerce .page-numbers li .current {
	background: #16a34a;
	color: #fff;
	border-color: #16a34a;
}
.bg-dark {
	background-color: #343a40 !important;
}
.bg-white {
	background-color: #fff !important;
}
.bg-gray {
    background-color: #f3f3f3 !important;
}
.shadow {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.list-unstyled {
	padding-left: 0;
	list-style: none;
}
.list-unstyled > li {
	padding-left: 0;
}
.ratio-1x1 {
	--bs-aspect-ratio: 100%;
}
.ratio-1x1::before {
	padding-top: var(--bs-aspect-ratio);
}

/* Custom styles for product detail page */
.custom-hover-text-success:hover {
	color: #16a34a !important;
}

.cursor-zoom-in {
	cursor: zoom-in;
}

.transition {
	transition: all 0.3s ease;
}

.bg-success-subtle {
	background-color: #f0fdf4 !important;
}

.border-success-subtle {
	border-color: #bbf7d0 !important;
}

.min-vh-100 {
	min-height: 100vh;
}

.bg-light {
	background-color: #f8f9fa !important;
}

.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-accent-bg: rgba(0, 0, 0, 0.05);
	color: var(--bs-table-striped-color);
}

.table-hover > tbody > tr:hover > * {
	--bs-table-accent-bg: rgba(0, 0, 0, 0.075);
	color: var(--bs-table-hover-color);
}

.woocommerce ul.products li.product {
	list-style: none;
	margin: 0;
}

.woocommerce .product {
	margin-bottom: 2rem;
}

.woocommerce .product .woocommerce-LoopProduct-link {
	text-decoration: none;
	color: inherit;
}

.woocommerce .product .price {
	color: #dc3545;
	font-weight: bold;
	font-size: 1.25rem;
}

.woocommerce .product .price del {
	color: #6c757d;
	text-decoration: line-through;
}

.woocommerce .add_to_cart_button {
	background-color: #16a34a;
	border-color: #16a34a;
	color: white;
}

.woocommerce .add_to_cart_button:hover {
	background-color: #15803d;
	border-color: #15803d;
}
.woocommerce-breadcrumb a {
	color: #15803d;
	text-decoration: none;
}

/* WooCommerce Pagination Styles */
.woocommerce-pagination {
	margin: 2rem 0;
}

.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0.5rem 0.75rem;
	margin: 0 0.25rem;
	background-color: #ffffff;
	color: #374151;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
	list-style: none;
}

.woocommerce-pagination .page-numbers:hover {
	border-color: #16a34a;
	color: #16a34a;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current:hover {
	background-color: #16a34a;
	border-color: #16a34a;
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.woocommerce-pagination .page-numbers.dots {
	border: none;
	background: none;
	color: #9ca3af;
	font-weight: 400;
	box-shadow: none;
}

.woocommerce-pagination .page-numbers.dots:hover {
	background: none;
	color: #9ca3af;
	transform: none;
	box-shadow: none;
}

.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next {
	font-weight: 600;
	padding: 0.5rem 1rem;
	min-width: 50px;
}

/* .woocommerce-pagination .page-numbers.prev::before,
.woocommerce-pagination .page-numbers.next::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 0 0.25rem;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
} */

/* .woocommerce-pagination .page-numbers.prev::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E");
} */

/* .woocommerce-pagination .page-numbers.next::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
} */

/* Responsive adjustments */
@media (max-width: 576px) {
	.woocommerce-pagination .page-numbers {
		min-width: 35px;
		height: 35px;
		padding: 0.375rem 0.5rem;
		font-size: 0.8rem;
		margin: 0 0.125rem;
	}

	.woocommerce-pagination .page-numbers.prev,
	.woocommerce-pagination .page-numbers.next {
		min-width: 45px;
		padding: 0.375rem 0.75rem;
	}
}
/* FAQ shortcode */
.faq-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-accordion .nnd-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #16a34a;
    border: 2px solid #16a34a;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.faq-accordion .accordion-button:not(.collapsed) .nnd-faq-icon {
    color: #ffffff;
    background-color: #16a34a;
}