@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
	--bg-primary: #FAF6F0; /* Warm cream/paper background */
	--bg-card: #FFFFFF;
	--primary: #1E4620; /* Deep classic library green */
	--primary-dark: #122B14;
	--primary-light: #2D5C30;
	--accent-gold: #B89047; /* Antique brass / gold */
	--accent-gold-hover: #A07B3A;
	--text-dark: #2D241E; /* Cozy dark charcoal/brown */
	--text-muted: #6B5B52; /* Soft brown-gray */
	--border-color: #E6DFD5; /* Elegant cream border */
	--shadow-sm: 0 4px 12px rgba(45, 36, 30, 0.05);
	--shadow-md: 0 12px 28px rgba(45, 36, 30, 0.08);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
	--font-serif: 'Playfair Display', Georgia, serif;
	--font-sans: 'Inter', system-ui, sans-serif;
}

body.dark {
	--bg-primary: #121A13; /* Very dark forest green-gray */
	--bg-card: #1A261C; /* Dark card color */
	--text-dark: #ECE7DF; /* Warm light cream text */
	--text-muted: #A39B92;
	--border-color: #2D3D30;
	--shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
	--primary: #2D5C30;
	--primary-dark: #0A120B;
	--primary-light: #3A733E;
}

* {
	box-sizing: border-box;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-dark);
	margin: 0px;
	font-family: var(--font-sans);
	line-height: 1.6;
}

#header {
	width: 100%;
	height: 420px;	
	position: relative;
	border-bottom: 4px solid var(--accent-gold);
	overflow: hidden;
	background-color: var(--primary-dark);
}

.slides-container {
	width: 100%;
	height: 100%;
	position: relative;
}

.slide-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
	opacity: 1;
	pointer-events: auto;
}

.slide-content {
	text-align: center;
	color: #FFFFFF;
	z-index: 5;
	padding: 20px;
	max-width: 800px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s, opacity 0.6s ease 0.3s;
}

.slide-item.active .slide-content {
	transform: translateY(0);
	opacity: 1;
}

.slide-title {
	font-family: var(--font-serif);
	font-size: 42px;
	font-weight: 700;
	letter-spacing: 3px;
	margin: 0 0 15px 0;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
	text-transform: uppercase;
}

.slide-subtitle {
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 30px 0;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.slide-btn {
	display: inline-block;
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	padding: 12px 35px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(184, 144, 71, 0.3);
	transition: all 0.3s ease;
}

.slide-btn:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(184, 144, 71, 0.5);
}

.slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.3);
	color: #FFFFFF;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.slide-arrow:hover {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
}

.slide-arrow.prev {
	left: 20px;
}

.slide-arrow.next {
	right: 20px;
}

.slide-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.slide-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.slide-dot:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
	background-color: var(--accent-gold);
	transform: scale(1.2);
}
			
#wrapper {
	background-color: var(--bg-primary);
	width: 100%;
	padding: 20px 0;
}
			
#footer {
	background-color: var(--primary-dark);
	border-top: 4px solid var(--accent-gold);
	width: 100%;
	min-height: 220px;
	padding: 50px 20px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	clear: both;
	position: relative;
}

#footer::before {
	content: "THE GRAND LIBRARY";
	font-family: var(--font-serif);
	color: var(--accent-gold);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 3px;
	display: block;
	margin-bottom: 12px;
}

#footer::after {
	content: "© 2026 Bản quyền thuộc về Nhà Sách Thư Viện. Cung cấp không gian tri thức trực tuyến tốt nhất.";
	font-family: var(--font-sans);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	display: block;
	margin-top: 20px;
}

#container {
	width: 85%;
	max-width: 1200px;
	min-height: 500px;
	margin: 40px auto;	
}

.cate {
	width: 100%;	
	margin-bottom: 60px;
	clear: both;
}

.cate-title {
	width: auto;
	display: inline-block;
	line-height: 46px;
	height: 46px;
	background-color: var(--primary);
	color: var(--bg-primary);
	border-radius: 4px;
	font-size: 18px;
	margin: 30px 0px 20px 0px;
	padding: 0 28px;
	font-weight: 600;
	text-transform: uppercase;
	font-family: var(--font-serif);
	letter-spacing: 2px;
	border-left: 5px solid var(--accent-gold);
	box-shadow: var(--shadow-sm);
}

.list-product {
	width: 100%;	
	display: flow-root;
	margin-top: 10px;
}

.product {	
	text-align: center;
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px 18px;
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.product::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: var(--accent-gold);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.product:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-md);
	border-color: var(--accent-gold);
}

.product:hover::before {
	transform: scaleX(1);
}

.photo {
	max-width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 5px 12px rgba(45, 36, 30, 0.15);
	margin-bottom: 18px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover .photo {
	transform: scale(1.04);
	box-shadow: 0 8px 20px rgba(45, 36, 30, 0.25);
}

.name {
	font-family: var(--font-serif);
	color: var(--text-dark);
	font-size: 16px;
	font-weight: 600;
	margin: 12px 0 8px 0;
	height: 46px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.product:hover .name {
	color: var(--primary);
}

.price {
	font-family: var(--font-sans);
	color: #A34E36; /* Warm rust/brick color */
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

#menu {
	background-color: var(--primary);
	height: 52px;
	width: 100%;
	line-height: 52px;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 999;
	border-bottom: 2px solid var(--accent-gold);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#menu ul {
	margin: 0px auto;
	padding: 0px;
	width: 80%;
	height: 100%;
	list-style: none;	
}

#menu ul > li {
	float: left;	
	line-height: 52px;
	position: relative;
}

#menu ul li a {
	text-decoration: none;
	color: #FFF;
	display: block;
	padding: 0px 24px;	
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#menu ul li a:hover {
	background-color: var(--accent-gold);
	color: var(--primary-dark);	
}

#menu ul ul {
	display: none;
	position: absolute;
	top: 52px;
	left: 0px;
	background-color: var(--primary-dark);
	box-shadow: var(--shadow-lg);
	padding: 0;
	margin: 0;
	z-index: 100;
	border-top: 3px solid var(--accent-gold);
	min-width: 220px;
}

#menu ul li:hover > ul {
	display: block;
}

#menu ul ul li {
	float: none;
	line-height: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#menu ul ul li a {
	color: rgba(255, 255, 255, 0.85);
	padding: 10px 20px;
	line-height: 20px;
	text-transform: none;
	font-size: 13px;
	letter-spacing: 0;
}

#menu ul ul li a:hover {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	padding-left: 26px;
}

#quick-contact {
	background-color: var(--accent-gold);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	position: fixed;
	bottom: 24px;
	right: 24px;
	box-shadow: 0 4px 16px rgba(184, 144, 71, 0.4);
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#quick-contact::before {
	content: "🛒";
	font-size: 24px;
	color: var(--primary-dark);
}

#quick-contact:hover {
	background-color: var(--accent-gold-hover);
	transform: scale(1.1) rotate(15deg);
	box-shadow: 0 6px 20px rgba(184, 144, 71, 0.6);
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(184, 144, 71, 0.4);
	}
	70% {
		box-shadow: 0 0 0 15px rgba(184, 144, 71, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(184, 144, 71, 0);
	}
}

#quick-contact {
	animation: pulse 2s infinite;
}

[class*="col-"] {
	float: left;
	padding: 15px;	
}

/* --- TÍNH NĂNG MỚI: BỘ LỌC VÀ TÌM KIẾM --- */
.filter-search-container {
	width: 85%;
	max-width: 1200px;
	margin: 30px auto 10px auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.search-box {
	position: relative;
	flex: 1;
	max-width: 450px;
	min-width: 280px;
}

.search-box input {
	width: 100%;
	padding: 12px 20px 12px 45px;
	border-radius: 30px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-card);
	color: var(--text-dark);
	outline: none;
	font-size: 14px;
	font-family: var(--font-sans);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
	border-color: var(--accent-gold);
	box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.15);
}

.search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 16px;
}

.filter-tabs {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.filter-tab {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	color: var(--text-dark);
	padding: 10px 22px;
	border-radius: 30px;
	cursor: pointer;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.filter-tab:hover {
	border-color: var(--accent-gold);
	color: var(--accent-gold);
}

.filter-tab.active {
	background-color: var(--primary);
	color: #FFFFFF;
	border-color: var(--primary);
	box-shadow: var(--shadow-sm);
}

/* --- TÍNH NĂNG MỚI: THẺ SÁCH INTERACTIVE --- */
.book-card-click {
	cursor: pointer;
}

.book-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.btn-borrow, .btn-buy {
	flex: 1;
	padding: 10px 0;
	border-radius: 6px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.btn-borrow {
	background-color: var(--primary);
	color: #FFFFFF;
}

.btn-borrow:hover {
	background-color: var(--primary-light);
	transform: translateY(-2px);
}

.btn-buy {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
}

.btn-buy:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-2px);
}

/* --- TÍNH NĂNG MỚI: MODAL CHI TIẾT SÁCH --- */
.book-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(18, 26, 19, 0.7);
	backdrop-filter: blur(5px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.book-modal.active {
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 30px;
	box-shadow: var(--shadow-lg);
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.book-modal.active .modal-content {
	transform: translateY(0);
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 22px;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.2s ease;
	z-index: 10;
}

.modal-close:hover {
	color: var(--text-dark);
}

.modal-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 30px;
}

@media (max-width: 640px) {
	.modal-grid {
		grid-template-columns: 1fr;
	}
	.modal-left {
		text-align: center;
	}
}

.modal-img {
	width: 100%;
	max-width: 240px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.modal-cat {
	background-color: rgba(184, 144, 71, 0.15);
	color: var(--accent-gold);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 10px;
}

.modal-title {
	font-family: var(--font-serif);
	color: var(--text-dark);
	font-size: 26px;
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.modal-author {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 20px 0;
}

.modal-meta-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
	font-size: 13px;
}

.modal-meta-list span {
	color: var(--text-muted);
}

.status-badge {
	background-color: #E2F0D9;
	color: #385723;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}

.modal-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
}

.star {
	color: #D3D3D3;
	font-size: 18px;
}

.star.filled {
	color: var(--accent-gold);
}

.rating-text {
	font-size: 13px;
	color: var(--text-muted);
	margin-left: 8px;
}

.modal-price-box {
	background-color: rgba(45, 36, 30, 0.03);
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

body.dark .modal-price-box {
	background-color: rgba(255, 255, 255, 0.03);
}

.modal-price-label {
	font-size: 14px;
	color: var(--text-muted);
}

.modal-price {
	font-size: 20px;
	font-weight: 700;
	color: #A34E36;
}

.modal-price-borrow-tip {
	font-size: 12px;
	color: var(--primary);
	font-weight: 600;
}

body.dark .modal-price-borrow-tip {
	color: #6fb272;
}

.modal-desc h3 {
	font-family: var(--font-serif);
	font-size: 16px;
	margin: 0 0 8px 0;
	color: var(--text-dark);
}

.modal-desc p {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.5;
}

.modal-actions {
	display: flex;
	gap: 15px;
	margin-top: 25px;
}

.btn-borrow-large, .btn-buy-large {
	flex: 1;
	padding: 14px 0;
	border-radius: 8px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-borrow-large {
	background-color: var(--primary);
	color: #FFFFFF;
}

.btn-borrow-large:hover {
	background-color: var(--primary-light);
	transform: translateY(-2px);
}

.btn-buy-large {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
}

.btn-buy-large:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-2px);
}

/* --- TÍNH NĂNG MỚI: SIDEBAR GIỎ HÀNG --- */
.cart-sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100%;
	background-color: var(--bg-card);
	border-left: 1px solid var(--border-color);
	z-index: 1010;
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-sidebar.active {
	right: 0;
}

@media (max-width: 450px) {
	.cart-sidebar {
		width: 100%;
		right: -100%;
	}
}

.cart-header {
	padding: 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-header h3 {
	margin: 0;
	font-family: var(--font-serif);
	color: var(--text-dark);
	font-size: 18px;
}

.cart-close-btn {
	background: none;
	border: none;
	font-size: 22px;
	color: var(--text-muted);
	cursor: pointer;
	line-height: 1;
}

.cart-items-container {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.empty-cart-view {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-muted);
}

.cart-item {
	display: flex;
	gap: 12px;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid rgba(45, 36, 30, 0.05);
	position: relative;
	align-items: center;
}

body.dark .cart-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
	width: 50px;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart-item-details {
	flex: 1;
}

.cart-item-title {
	margin: 0 0 4px 0;
	font-family: var(--font-serif);
	font-size: 13px;
	color: var(--text-dark);
	font-weight: 600;
	padding-right: 20px;
	line-height: 1.3;
}

.cart-item-action {
	display: inline-block;
	font-size: 9px;
	padding: 1px 6px;
	border-radius: 4px;
	font-weight: 600;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.cart-item-action.borrow {
	background-color: rgba(30, 70, 32, 0.1);
	color: var(--primary);
}

body.dark .cart-item-action.borrow {
	background-color: rgba(111, 178, 114, 0.15);
	color: #6fb272;
}

.cart-item-action.buy {
	background-color: rgba(184, 144, 71, 0.15);
	color: var(--accent-gold);
}

.cart-item-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
}

.cart-item-price {
	font-size: 13px;
	font-weight: 600;
	color: #A34E36;
}

.cart-qty-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	overflow: hidden;
	background-color: var(--bg-primary);
}

.cart-qty-control button {
	background: none;
	border: none;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-weight: bold;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-qty-control button:hover {
	background-color: var(--border-color);
}

.cart-qty-control span {
	padding: 0 8px;
	font-size: 12px;
	font-weight: 600;
}

.cart-item-remove {
	position: absolute;
	top: 0;
	right: 0;
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 14px;
}

.cart-item-remove:hover {
	color: #B83A3A;
}

.cart-footer {
	padding: 20px;
	border-top: 1px solid var(--border-color);
	background-color: rgba(45, 36, 30, 0.02);
}

body.dark .cart-footer {
	background-color: rgba(255, 255, 255, 0.02);
}

.cart-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 14px;
}

.cart-total-price {
	font-size: 18px;
	color: #A34E36;
}

.checkout-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form-group-radio {
	display: flex;
	gap: 15px;
	margin-bottom: 5px;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-card);
	color: var(--text-dark);
	outline: none;
	font-size: 13px;
	font-family: var(--font-sans);
}

.form-group input:focus, .form-group textarea:focus {
	border-color: var(--accent-gold);
}

.date-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.date-group label {
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}

.date-group input {
	width: auto;
	flex: 1;
}

.checkout-btn {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	border: none;
	padding: 12px;
	border-radius: 6px;
	font-weight: 600;
	font-family: var(--font-sans);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	margin-top: 5px;
}

.checkout-btn:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-2px);
}

.checkout-btn:disabled {
	background-color: var(--border-color);
	color: var(--text-muted);
	cursor: not-allowed;
	transform: none;
}

/* --- TÍNH NĂNG MỚI: TOAST VÀ POPUP THÔNG BÁO --- */
.toast-notification {
	position: fixed;
	bottom: 30px;
	left: 30px;
	background-color: var(--primary-dark);
	border-left: 4px solid var(--accent-gold);
	color: #FFFFFF;
	padding: 12px 20px;
	border-radius: 6px;
	box-shadow: var(--shadow-lg);
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateY(50px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	pointer-events: none;
}

.toast-notification.visible {
	transform: translateY(0);
	opacity: 1;
}

.toast-notification.error {
	border-left-color: #B83A3A;
}

.toast-icon {
	font-weight: bold;
	color: var(--accent-gold);
}

.toast-notification.error .toast-icon {
	color: #B83A3A;
}

.toast-msg {
	font-size: 13px;
	font-weight: 500;
}

/* Hộp thoại xác nhận tùy chỉnh (Custom Alert) */
.custom-alert-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(18, 26, 19, 0.75);
	backdrop-filter: blur(5px);
	z-index: 2010;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.custom-alert-box {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	padding: 35px 30px;
	border-radius: 16px;
	width: 90%;
	max-width: 450px;
	text-align: center;
	box-shadow: var(--shadow-lg);
	animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-icon {
	font-size: 50px;
	margin-bottom: 15px;
}

.custom-alert-box h2 {
	font-family: var(--font-serif);
	color: var(--text-dark);
	margin: 0 0 15px 0;
	font-size: 22px;
}

.custom-alert-message {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 25px;
}

.custom-alert-btn {
	background-color: var(--primary);
	color: #FFFFFF;
	border: none;
	padding: 10px 30px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.custom-alert-btn:hover {
	background-color: var(--primary-light);
	transform: translateY(-2px);
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes scaleIn {
	from { transform: scale(0.9); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
	grid-column: 1 / -1;
	width: 100%;
}

.no-results h2 {
	font-family: var(--font-serif);
	color: var(--text-dark);
	margin: 10px 0;
}

/* Badge số lượng giỏ hàng trên Menu */
#cart-count {
	position: absolute;
	top: 15px;
	right: 2px;
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	font-size: 10px;
	font-weight: bold;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Badge số lượng trên Quick Contact nổi */
#quick-cart-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #B83A3A;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 7px;
	border-radius: 10px;
	display: none;
	line-height: 1;
}

/* Cài đặt riêng cho Menu float right */
#menu ul li[style*="float: right"] a {
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tối ưu hóa mượt mà cho đổi màu dark mode */
body, .product, .cate-title, .search-box input, .filter-tab, .modal-content, .cart-sidebar, .custom-alert-box {
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
/* Định dạng cho Mobile */
@media only screen and (max-width: 768px) {
	#header {
		display: block;
		height: 250px;
	}
	
	.slide-title {
		font-size: 24px;
		letter-spacing: 1px;
	}
	
	.slide-subtitle {
		font-size: 13px;
		margin-bottom: 15px;
	}
	
	.slide-btn {
		padding: 8px 20px;
		font-size: 11px;
	}
	
	.slide-arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
	.slide-arrow.prev { left: 10px; }
	.slide-arrow.next { right: 10px; }
	
	#quick-contact {
		display: flex;
	}
	
	#container {
		width: 90%;
		margin: 20px auto;
	}
	
	#menu ul {
		width: 100%;
	}
	
	#menu ul li a {
		padding: 0px 12px;
		font-size: 11px;
	}
	
	.filter-search-container {
		width: 90%;
		margin-top: 20px;
	}
	
	.col-s-1 { width: 8.33% }
	.col-s-2 { width: 16.66%}
	.col-s-3 { width: 25%}
	.col-s-4 { width: 33.33%}
	.col-s-5 { width: 41.66%}
	.col-s-6 { width: 50%}
	.col-s-7 { width: 58.33% }
	.col-s-8 { width: 66.66%}
	.col-s-9 { width: 75%}
	.col-s-10 { width: 83.33%}
	.col-s-11 { width: 91.66%}
	.col-s-12 { width: 100%}
}

/* Định dạng cho Tablet */
@media only screen and (min-width: 768px) {
	#header {
		display: block;
		height: 340px;
	}
	
	#quick-contact {
		display: none;
	}
	
	.col-m-1 { width: 8.33% }
	.col-m-2 { width: 16.66%}
	.col-m-3 { width: 25%}
	.col-m-4 { width: 33.33%}
	.col-m-5 { width: 41.66%}
	.col-m-6 { width: 50%}
	.col-m-7 { width: 58.33% }
	.col-m-8 { width: 66.66%}
	.col-m-9 { width: 75%}
	.col-m-10 { width: 83.33%}
	.col-m-11 { width: 91.66%}
	.col-m-12 { width: 100%}
}

/* Định dạng cho Laptop/PC */
@media only screen and (min-width: 1200px) {
	#quick-contact {
		display: flex;
	}
	
	.col-x-1 { width: 8.33% }
	.col-x-2 { width: 16.66%}
	.col-x-3 { width: 25%}
	.col-x-4 { width: 33.33%}
	.col-x-5 { width: 41.66%}
	.col-x-6 { width: 50%}
	.col-x-7 { width: 58.33% }
	.col-x-8 { width: 66.66%}
	.col-x-9 { width: 75%}
	.col-x-10 { width: 83.33%}
	.col-x-11 { width: 91.66%}
	.col-x-12 { width: 100%}
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: TICKER CHẠY CHỮ --- */
.ticker-wrap {
	width: 100%;
	height: 30px;
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	overflow: hidden;
	position: relative;
	line-height: 30px;
	font-size: 12px;
	font-weight: 600;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
.ticker-text {
	display: inline-block;
	white-space: nowrap;
	padding-left: 100%;
	animation: marquee 25s linear infinite;
}
@keyframes marquee {
	0% { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(-100%, 0, 0); }
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: BỘ LỌC KHOẢNG GIÁ --- */
.price-filter-box {
	min-width: 180px;
}
.price-select {
	width: 100%;
	padding: 10px 18px;
	border-radius: 30px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-card);
	color: var(--text-dark);
	outline: none;
	font-size: 13px;
	font-family: var(--font-sans);
	cursor: pointer;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-select:focus {
	border-color: var(--accent-gold);
	box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.15);
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: NÚT CUỘN LÊN ĐẦU TRANG --- */
.back-to-top {
	position: fixed;
	bottom: 96px;
	right: 24px;
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}
.back-to-top.visible {
	opacity: 1;
	pointer-events: auto;
}
.back-to-top:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-3px);
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: TRÌNH PHÁT NHẠC LOFI --- */
@keyframes music-playing {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}
.music-playing {
	animation: music-playing 1.5s infinite ease-in-out;
	color: var(--accent-gold) !important;
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: ĐĂNG KÝ BẢN TIN FOOTER --- */
.footer-newsletter {
	max-width: 600px;
	margin: 0 auto;
	padding: 10px;
	text-align: center;
}
.footer-newsletter h3 {
	font-family: var(--font-serif);
	color: var(--accent-gold);
	font-size: 20px;
	margin-bottom: 8px;
}
.footer-newsletter p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 20px;
}
.newsletter-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	max-width: 450px;
	margin: 0 auto;
}
.newsletter-form input {
	flex: 1;
	padding: 10px 18px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background-color: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	font-size: 13px;
	outline: none;
}
.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}
.newsletter-form input:focus {
	border-color: var(--accent-gold);
	background-color: rgba(255, 255, 255, 0.15);
}
.newsletter-btn {
	background-color: var(--accent-gold);
	color: var(--primary-dark);
	border: none;
	padding: 10px 24px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.newsletter-btn:hover {
	background-color: var(--accent-gold-hover);
	transform: translateY(-2px);
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: NÚT HÀNH ĐỘNG GIỎ HÀNG --- */
.cart-header-actions {
	display: flex;
	gap: 6px;
	margin-left: auto;
	margin-right: 12px;
}
.cart-action-btn {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-dark);
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 4px;
}
.cart-action-btn:hover {
	background-color: var(--border-color);
	color: var(--accent-gold);
	transform: translateY(-1px);
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: THANH TIẾN TRÌNH NHẬN QUÀ --- */
.gift-progress-container {
	padding: 12px 20px;
	background-color: rgba(184, 144, 71, 0.05);
	border-bottom: 1px solid var(--border-color);
}
body.dark .gift-progress-container {
	background-color: rgba(184, 144, 71, 0.02);
}
.gift-progress-text {
	font-size: 11px;
	color: var(--text-dark);
	margin-bottom: 6px;
	line-height: 1.4;
}
.gift-progress-text strong {
	color: #A34E36;
}
body.dark .gift-progress-text strong {
	color: var(--accent-gold);
}
.gift-progress-track {
	height: 6px;
	background-color: var(--bg-primary);
	border-radius: 3px;
	overflow: hidden;
	border: 1px solid var(--border-color);
}
.gift-progress-bar {
	height: 100%;
	width: 0%;
	background-color: var(--accent-gold);
	border-radius: 3px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gift-progress-bar.active {
	background: linear-gradient(90deg, var(--accent-gold), #A34E36);
}
.gift-progress-bar.completed {
	background-color: #6fb272;
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: KHU VỰC COUPON --- */
.coupon-container {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}
.coupon-container input {
	flex: 1;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	background-color: var(--bg-card);
	color: var(--text-dark);
	font-size: 12px;
	outline: none;
}
.coupon-container input:focus {
	border-color: var(--accent-gold);
}
.coupon-container button {
	background-color: var(--primary);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: background-color 0.2s;
}
.coupon-container button:hover {
	background-color: var(--primary-light);
}
.coupon-status {
	font-size: 11px;
	margin-bottom: 8px;
	padding: 6px 10px;
	border-radius: 4px;
	font-weight: 500;
}
.coupon-status.success {
	background-color: rgba(111, 178, 114, 0.1);
	color: #6fb272;
	border: 1px solid rgba(111, 178, 114, 0.2);
}
.coupon-status.error {
	background-color: rgba(184, 58, 58, 0.1);
	color: #d9534f;
	border: 1px solid rgba(184, 58, 58, 0.2);
}

/* --- TÍNH NĂNG MỚI BỔ SUNG: MODAL LỊCH SỬ --- */
.history-list-container {
	padding: 5px;
}
.history-card {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	margin-bottom: 15px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.history-card-header {
	background-color: rgba(45, 36, 30, 0.03);
	padding: 10px 15px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--text-muted);
}
body.dark .history-card-header {
	background-color: rgba(255, 255, 255, 0.03);
}
.history-card-id {
	font-weight: bold;
	color: var(--text-dark);
}
.history-card-body {
	padding: 15px;
}
.history-badge {
	display: inline-block;
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	text-transform: uppercase;
}
.history-badge.badge-borrow {
	background-color: rgba(30, 70, 32, 0.1);
	color: var(--primary);
}
body.dark .history-badge.badge-borrow {
	background-color: rgba(111, 178, 114, 0.15);
	color: #6fb272;
}
.history-badge.badge-buy {
	background-color: rgba(184, 144, 71, 0.15);
	color: var(--accent-gold);
}
.history-card-total {
	font-size: 13px;
	color: var(--text-dark);
}
.history-card-total strong {
	color: #A34E36;
}
body.dark .history-card-total strong {
	color: var(--accent-gold);
}
.history-card-customer {
	font-size: 12px;
	color: var(--text-dark);
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--border-color);
}
.history-card-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.history-item-detail {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--text-muted);
}
.history-item-detail span:first-child {
	color: var(--text-dark);
	font-weight: 500;
}
.about-hero {
	background-image: linear-gradient(rgba(18, 26, 19, 0.65), rgba(18, 26, 19, 0.65)), url('https://images.unsplash.com/photo-1512820790803-83ca734da794?q=80&w=1200&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
	padding: 100px 20px;
	text-align: center;
	color: #FFFFFF;
}
.about-hero-content {
	max-width: 780px;
	margin: 0 auto;
}
.about-hero-content span {
	display: inline-block;
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.about-hero-content h1 {
	font-family: var(--font-serif);
	font-size: 42px;
	margin: 0 0 18px 0;
	letter-spacing: 1px;
}
.about-hero-content p {
	font-size: 17px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 auto 24px auto;
	max-width: 700px;
}
.about-page {
	width: 85%;
	max-width: 1200px;
	margin: 40px auto 80px auto;
}
.about-section {
	margin-bottom: 40px;
}
.about-section h2 {
	font-family: var(--font-serif);
	font-size: 30px;
	margin-bottom: 18px;
	color: var(--text-dark);
}
.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.about-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--shadow-sm);
}
.about-card h2 {
	font-size: 20px;
	margin-bottom: 12px;
}
.about-card p {
	font-size: 14px;
	line-height: 1.75;
	color: var(--text-muted);
}
.about-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.about-feature {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--shadow-sm);
}
.about-feature h3 {
	font-size: 18px;
	margin-bottom: 10px;
}
.about-feature p {
	font-size: 14px;
	line-height: 1.75;
	color: var(--text-muted);
}
.about-list {
	list-style: disc;
	padding-left: 24px;
	margin-top: 16px;
	color: var(--text-muted);
}
.about-list li {
	margin-bottom: 10px;
}
.about-team-section p {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-muted);
}
