/* =========================================
   CÀI ĐẶT CƠ BẢN
   ========================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
}

body {
	background-color: #f4f4f4;
}

.container {
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* =========================================
   BANNER TRÊN CÙNG
   ========================================= */
.top-banner {
	width: 100%;
	background-color: #e5101d;
	text-align: center;
	overflow: hidden;
}

.top-banner img {
	width: 100%;
	max-height: 60px;
	object-fit: cover;
}

/* =========================================
   HEADER MÀU TRẮNG
   ========================================= */
.header-white {
	background-color: white;
	padding: 15px 0;
	border-bottom: 1px solid #ddd;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo h1 {
	font-size: 28px;
	font-weight: 900;
}

.search-bar {
	display: flex;
	width: 45%;
	background: #f0f0f0;
	border-radius: 30px; 
	padding: 5px 20px;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}

.search-bar:focus-within {
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 91, 175, 0.2); 
	border-color: #005baf;
}

.search-bar input {
	width: 100%;
	padding: 8px;
	border: none;
	background: transparent;
	outline: none;
	font-size: 14px;
}

.search-bar button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.login-icon-btn {
	background: none;
	border: 2px solid #ccc;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* =========================================
   THANH MENU XANH DƯƠNG (STICKY)
   ========================================= */
.nav-blue {
	background-color: #005baf;
	position: sticky; 
	top: 0;           
	z-index: 999;     
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-blue ul {
	list-style: none;
	display: flex;
	justify-content: flex-start;
}

.nav-blue a {
	display: block;
	padding: 12px 15px;
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-size: 13px;
	text-transform: uppercase;
}

.nav-blue a:hover {
	background-color: #00458a;
}

/* =========================================
   SLIDER LƯỚT NGANG TRÀN MÀN HÌNH
   ========================================= */
.main-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.slider-wrapper {
	display: flex;
	transition: transform 0.5s ease-in-out;
	width: 100%;
}

.slide-img {
	min-width: 100%;
	height: auto;
	max-height: 450px;
	object-fit: cover;
	display: block;
}

.slide-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0,0,0,0.3);
	color: white;
	border: none;
	font-size: 24px;
	padding: 15px 20px;
	cursor: pointer;
	z-index: 10;
	transition: 0.3s;
}

.slide-btn:hover {
	background-color: rgba(0, 91, 175, 0.8);
}

.slide-btn.prev {
	left: 0;
	border-radius: 0 5px 5px 0;
}

.slide-btn.next {
	right: 0;
	border-radius: 5px 0 0 5px;
}

.slider-dots {
	position: absolute;
	bottom: 15px;
	width: 100%;
	text-align: center;
	z-index: 10;
}

.dot {
	cursor: pointer;
	height: 12px;
	width: 12px;
	margin: 0 5px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	display: inline-block;
	transition: all 0.3s ease;
}

.dot.active, .dot:hover {
	background-color: #fff;
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
	transform: scale(1.3);
}

/* =========================================
   DANH MỤC & SẢN PHẨM (THIẾT KẾ ZSHOP MỚI)
   ========================================= */
.section-title {
	margin: 20px 0;
	font-size: 20px;
	color: #333;
	border-bottom: 2px solid #005baf; 
	padding-bottom: 10px;
	text-transform: uppercase;
	font-weight: bold;
}

/* Khối chia gian hàng */
.category-section {
	margin-top: 40px;
	margin-bottom: 30px;
}

/* Thanh chứa dải ruy băng và Các link hãng */
.category-header {
	display: flex;
	align-items: center;
	justify-content: space-between; /* Đẩy link các hãng sang góc bên phải */
	border-bottom: 2px solid #eee;
	margin-bottom: 25px;
	background-color: #f8f9fa;
}

/* Dải ruy băng cắt góc mũi tên */
.category-title {
	background-color: #005baf;
	color: white;
	padding: 10px 40px 10px 20px;
	font-size: 18px;
	text-transform: uppercase;
	position: relative;
	margin: 0;
	clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

/* Các link hãng bên phải (Sony, Canon...) */
.sub-category-links {
	padding-right: 15px;
	font-size: 14px;
	color: #ccc;
}

.sub-category-links a {
	color: #005baf;
	text-decoration: none;
	margin: 0 10px;
	transition: 0.3s;
}

.sub-category-links a:hover {
	color: #ed1b24;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.product-card {
	background: white;
	padding: 15px;
	border-radius: 12px; 
	text-align: center;
	border: 1px solid #f8f9fa; 
	box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
	position: relative;
	overflow: hidden;
}

.product-card:hover {
	transform: translateY(-8px); 
	box-shadow: 0 15px 30px rgba(0, 91, 175, 0.15); 
	border-color: transparent;
}

.product-img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	margin-bottom: 15px;
	transition: transform 0.5s ease; 
}

.product-card:hover .product-img {
	transform: scale(1.08); 
}

.product-name {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
	height: 40px;
}

.product-price {
	color: #ed1b24; 
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 15px;
}

.add-to-cart-btn {
	background: linear-gradient(135deg, #005baf, #00458a); 
	color: #FFF;
	border: none;
	padding: 12px 20px;
	border-radius: 25px; 
	cursor: pointer;
	width: 100%;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px; 
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 91, 175, 0.3); 
}

.add-to-cart-btn:hover {
	background: linear-gradient(135deg, #00458a, #002d5a);
	transform: translateY(-2px); 
	box-shadow: 0 6px 20px rgba(0, 91, 175, 0.5); 
}

/* =========================================
   GIỎ HÀNG (Nổi khối hiện đại)
   ========================================= */
.cart-layout {
	display: flex;
	gap: 30px;
	margin-top: 20px;
}

.cart-items-section {
	flex: 2;
	background: white;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}

.cart-info h4 {
	margin-bottom: 5px;
	color: #333;
}

.cart-price {
	color: #ed1b24;
	font-weight: bold;
	font-size: 16px;
}

.remove-btn {
	background-color: #ff4d4d;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	transition: 0.3s;
}

.remove-btn:hover {
	background-color: #cc0000;
}

.checkout-section {
	flex: 1;
	background: white;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	height: fit-content;
}

.total-price {
	font-size: 24px;
	color: #ed1b24;
	font-weight: bold;
	margin: 15px 0;
}

.checkout-btn {
	width: 100%;
	background: linear-gradient(135deg, #28a745, #218838);
	color: white;
	border: none;
	padding: 15px;
	font-size: 16px;
	border-radius: 25px;
	cursor: pointer;
	font-weight: bold;
	transition: 0.3s;
}

.checkout-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.continue-shopping-btn {
	display: inline-block;
	margin-bottom: 10px;
	color: #005baf;
	text-decoration: none;
	font-weight: bold;
}

/* =========================================
   TIN TỨC & BÀI VIẾT
   ========================================= */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 50px;
}

.news-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	transition: transform 0.3s ease;
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.news-content {
	padding: 20px;
}

.news-title {
	font-size: 16px;
	margin-bottom: 10px;
	line-height: 1.4;
}

.news-title a {
	color: #333;
	text-decoration: none;
	transition: 0.3s;
}

.news-title a:hover {
	color: #005baf;
}

.news-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

/* =========================================
   GIAO DIỆN TRANG DANH MỤC (CATEGORY PAGE)
   ========================================= */
.breadcrumb {
	margin: 20px 0;
	font-size: 14px;
	color: #666;
}

.breadcrumb a {
	color: #005baf;
	text-decoration: none;
}

.category-layout {
	display: flex;
	gap: 30px;
	margin-bottom: 50px;
}

.sidebar {
	width: 260px;
	flex-shrink: 0;
}

.sidebar-box {
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: white;
}

.sidebar-title {
	background: #f8f9fa;
	padding: 15px;
	font-size: 16px;
	text-transform: uppercase;
	border-bottom: 1px solid #ddd;
	color: #333;
	margin: 0;
}

.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #007bb5; 
}

.sidebar-menu li {
	border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-menu li a {
	display: block;
	padding: 12px 20px;
	color: white;
	text-decoration: none;
	font-size: 14px;
	transition: 0.3s;
}

.sidebar-menu li a:hover {
	background: #005baf;
	padding-left: 25px; 
}

.main-category-content {
	flex: 1;
}

.page-title {
	font-size: 26px;
	margin-bottom: 15px;
	color: #333;
}

.brand-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.brand-item {
	background: #008f9c; 
	color: white;
	text-align: center;
	padding: 30px 10px;
	font-size: 22px;
	font-weight: 900;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.3s;
	font-family: Arial Black, sans-serif; 
}

.brand-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 143, 156, 0.4);
	background: #006b75;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
	background-color: #222;
	color: #ccc;
	padding: 40px 0 0 0;
	margin-top: 50px;
	font-size: 14px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.footer-col h3 {
	color: white;
	margin-bottom: 15px;
	text-transform: uppercase;
	font-size: 16px;
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul li a {
	color: #ccc;
	text-decoration: none;
	transition: 0.3s;
}

.footer-col ul li a:hover {
	color: #005baf;
}

.footer-bottom {
	background-color: #111;
	text-align: center;
	padding: 15px 0;
}

/* =========================================
   MODAL ĐĂNG NHẬP
   ========================================= */
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6); 
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: white;
	padding: 30px;
	border-radius: 12px; 
	width: 400px;
	position: relative;
	animation: fadeInDown 0.4s ease;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.close-modal {
	position: absolute;
	right: 15px;
	top: 10px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

.close-modal:hover {
	color: #ed1b24; 
}

.modal-content h2 {
	margin-bottom: 20px;
	text-align: center;
	color: #333;
}

.input-field {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 8px; 
	outline: none;
	transition: 0.3s;
}

.input-field:focus {
	border-color: #005baf; 
	box-shadow: 0 0 5px rgba(0, 91, 175, 0.2);
}

.submit-btn {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #005baf, #00458a); 
	color: white;
	border: none;
	border-radius: 25px; 
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.submit-btn:hover {
	background: linear-gradient(135deg, #00458a, #002d5a);
	transform: translateY(-2px); 
	box-shadow: 0 6px 15px rgba(0, 91, 175, 0.4); 
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================
   TOAST GÓC MÀN HÌNH
   ========================================= */
.toast-msg {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: #28a745;
	color: white;
	padding: 15px 25px;
	border-radius: 5px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	z-index: 1000;
	font-weight: bold;
	animation: slideInUp 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
}

@keyframes slideInUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
		visibility: hidden;
	}
}
/* =========================================
   TRANG CHI TIẾT BÀI VIẾT (NEWS.HTML)
   ========================================= */
.article-page {
	max-width: 850px; /* Khung bài viết thu hẹp lại để mắt dễ đọc chữ hơn */
	margin: 30px auto 60px auto; /* Căn giữa trang */
	background: white;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-title {
	font-size: 32px;
	color: #333;
	margin-bottom: 15px;
	line-height: 1.4;
}

.article-meta {
	color: #777;
	font-size: 14px;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.article-content p {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 20px;
	text-align: justify;
}

.article-content h3 {
	font-size: 22px;
	color: #005baf;
	margin: 30px 0 15px 0;
}

.article-content ul {
	margin-bottom: 20px;
	padding-left: 20px;
}

.article-content ul li {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 10px;
	color: #333;
}

.article-content img {
	width: 100%;
	border-radius: 8px;
	margin: 20px 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}