
 @charset "utf-8";
 .row-2col {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* 2 cột lệch 1.5 nhau */
  gap: 20px;
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .row-2col {
    grid-template-columns: 1fr 1fr; /* xuống 1 cột */
  }
}
/* ======================================================
   new ARTICLE
====================================================== */
.article {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.article img {max-width: 200px; max-height: 200px; margin: 10px 0; border-radius: 8px;}

/* ======================================================
   GALLERY LAYOUT
   Ảnh lớn | Cột phải (ảnh nhỏ + giá + nút)
====================================================== */
.product-gallery {
display: flex;
flex-wrap:wrap; /* nowrap Giữ hai cột trên cùng một hàng --------------------------------------------------------------*/
  /*display: grid;*/
  grid-template-columns: 250px 1fr; /* 2 cột lệch 1.5 nhau */
  grid-template-areas: "main side";
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}
.product-gallery1 {
  display: flex;
  flex-wrap:wrap; /* Giữ hai cột trên cùng một hàng ----------------------------------------------------------------*/
  /*display: grid;*/
	max-width: 600px;
	
  
}


/*css cho anh hien thị ơ noi dung  tin tức*/
.main_new-image {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.main_new-image img {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.main_new-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.image-caption {
    display: block;
    margin-top: -12px;
	margin-bottom: 0px;
    font-size: 16px;
    color: #555;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
 
/*css cho anh hien thị ơ noi dung san pham */
.main-image {
  grid-area: main;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
} 


/* ======================================================
   SIDE COLUMN
====================================================== */

.thumbnails {
  grid-area: side;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 10px;
}
/* Thumbnail */
.thumbnail {
	display:inline;
  width: 80px;
  height: 80px;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  border-color: #0983F4;
}

.thumbnail.active {
  border-color: red;
}

/* ======================================================
   PRICE + BUTTON (nằm dưới ảnh nhỏ)
====================================================== */
.price-container {
  grid-column: 2;
  margin-top: 10px;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.current-price {
  font-size: 16px;
  font-weight: bold;
  color: #e60000;
}

.old-price {
  font-size: 13px;
  color: #777;
}

.discount {
  font-size: 13px;
  color: red;
  margin-left: 4px;
}

/* Button */
.buttons {
  margin-top: 10px;
}

.btn {
  max-width: 180px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-buy {
  background: #e60000;
  color: #fff;
}

.btn-buy:hover {
  background: #c40000;
}
.btn-chitiet {
  background:#32AEF4;
  color: #fff;
}

.btn-chitiet:hover {
  background: #c40000;
}
/* ======================================================
   DESCRIPTION
====================================================== */
.article p {
  margin: 16px 0;
  line-height: 1.6;
  color: #444;
}

/* ======================================================
   PRODUCT TABLE
====================================================== */

table[border="1"] {
	text-align: left;
    width: 100%;
    margin: 0 auto 40px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

table[border="1"] th {
    background:#2c3e50;
    color: #fff;
    padding: 12px;
    font-size: 14px;
}

table[border="1"] td {
	padding: 10px;
    font-size: 14px; 
}

table[border="1"] tr:hover {
    background: #f2f6ff;
}

table[border="1"] select {
    height: 32px;
    border-radius: 5px;
}
table[border="1"] {
    border: none;border: 1px dotted #5E5C5C ; /* chỉ còn dòng ngang */
}

table[border="1"] tr {
    border-bottom: 1px dotted #5E5C5C ; /* chỉ còn dòng ngang */
}

table[border="1"] th,
table[border="1"] td {
    border-left: none;
    border-right: none;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        border-radius: 18px;
        gap: 6px;
        text-align: center;
    }

    .header-left { min-width: auto; }

    .menu-row {flex-direction: column; align-items: center; }

    table[border="1"],
    .section { width: 98%;}

    table,th,td { font-size: 13px;}
}
	/*-------------*/

  
.category-list {
    display: flex;
    flex-wrap: wrap; /* T? xu?ng hàng */
    gap: 15px; /* Kho?ng cách gi?a các ô */
	
}

.category-item {
    flex: 1 1 calc(25% - 20px); /* M?i ô chi?m 25% chi?u r?ng */
    min-width: 200px; /* Ð?m b?o không quá nh? khi co */
    box-sizing: border-box;
	background-color:#E4EEF0;
	border-radius: 8px;
	padding: 8px;
	border: 1px solid #D4DBDC;
}
/* ======================================================
   Base & Reset
====================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* ======================================================
   Language Switcher
====================================================== */
.languer {
  display: flex;
  align-items: center;
  gap: 10px;
 
}

.languer img {
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
	
}

.languer img:hover {
  transform: scale(1.1);
}

/* ======================================================
   Layout
====================================================== */
header {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
}

main {
  /*max-width: 1920px;*/
  margin: 0 auto;	
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);/*hiển thị 2 cột trên hàng */
  gap: 20px;
	 
}


.article {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #E0DFDF;
}

footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}
a {
    color:#154BC7;           /* màu bình thường */
    text-decoration: none;  /* bỏ gạch chân nếu muốn */
}

a:visited {
    color:#154BC7;           /* giữ nguyên màu sau khi click */
}
a:hover {
    color:brown;           /* khi hover */
}
/* ======================================================
   Navigation
====================================================== */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #0361c4;
  padding: 10px;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.hamburger {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
}

.nav-links a:hover {
  background-color: brown;
}

/* ======================================================
   Dropdown Menu
====================================================== */
/* dropdown menu*/	
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: azure;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: 300px;
    z-index: 1000;
    white-space: normal;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: black;
    padding: 10px;
    display: block;
    border-bottom: 1px solid #555;
    text-decoration: none;
}
.dropdown-content a:hover {
    background-color: #FCF7E4;/* antiquewhite;*/
}
/* sub-dropdown menu*/
.sub-dropdown {
    position: relative;
}
.sub-dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: azure;
    min-width: 220px;
    max-width: 300px;
    z-index: 1001;
}
.sub-dropdown-content.left {
    left: auto;
    right: 100%;
}
.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}
.sub-dropdown-content a {
    color: black;
    padding: 10px 10px 10px 25px;
    display: block;
    border-bottom: 1px solid #666;
    text-decoration: none;
}
.sub-dropdown-content a:hover {
    background-color: #FCF7E4;/* antiquewhite;*/
}
/* ======================================================
   Slideshow
====================================================== */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 50px;
  max-width: 60%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
}

.slide-caption h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.slide-caption p {
  font-size: 16px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  padding: 12px;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

/* ======================================================
   Cart
====================================================== */
.cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 24px;
  color: #5b67f2;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: red;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 40%;
}

/* ======================================================
   Pagination
====================================================== */
.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background-color: #f0f0f0;
}

.page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background-color: #fff;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page:hover {
  background-color: #2677f3;
  color: #fff;
}

.page.active {
  background-color: #2485ec;
  color: #fff;
  border: none;
}

/* ======================================================
   Search & Hotline
====================================================== */
.right-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hotline {
  background-color: #fff;
  border-radius: 8px;
  padding: 0 4px;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 200px;
  padding: 6px 9px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 16px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  min-width: 100px;
}

.search-box button {
  font-size: 16px;
  color: #5b67f2;
  	width:20px;
    height:21px;
    border:none;
    background:#FFFFFF url("image_vh/search.png") center center no-repeat;
    background-size:20px 21px;
    cursor:pointer;
}

/* ======================================================
   Breadcrumb
====================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px;
  padding: 8px 16px;
  background-color:#d1eaf0; /*#d1eaf0; */
  border-top: 3px solid #A6070A;
  font-size: 16px;
  
}

.breadcrumb li {
  color: #aaa;
}

.breadcrumb a {
  text-decoration: none;
  color: #5b67f2; font-size: 14px; font-weight: bold;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li:last-child a {
  color: #999;
  pointer-events: none;
}

/* ======================================================
   Header Banner (Flex Table)
====================================================== */

        /* Responsive cho màn hình nhỏ (Ví dụ: điện thoại) */
  
        .containerq {
            display: flex;
            flex-wrap: nowrap; /* Giữ hai cột trên cùng một hàng */
            width: 100%;
			
           	background-image: url('image_vh/baner.gif'); /* Đường dẫn ảnh nền */
    background-size: cover;        /* Ảnh phủ kín toàn bộ */
    background-position: center;   /* Căn giữa ảnh */
    background-repeat: no-repeat;  /* Không lặp lại */
    color: white;                  /* Chữ trắng để nổi bật */
        }


        /* Cột cố định (Fixed Column) */
        .fixed-columnq {
            flex: 0 0 100px; /* Không giãn, không co, cố định 250px */
            max-width: 100px; 
           color: white;
            padding: 20px;
            box-sizing: border-box;
        }

        /* Cột linh hoạt (Flexible Column) */
        .flex-columnq {
            flex: 1; /* Tự động chiếm toàn bộ phần không gian còn lại */
            min-width: 0; /* Quan trọng: Cho phép nội dung co lại dưới kích thước thực của nó */
          
            padding: 20px;
            box-sizing: border-box;
        }

 .font_sizeVH {
  font-size: 18px;
  color: rgb(0, 51, 255);
}

marquee p { margin: 0; }
/* ======================================================
   news
====================================================== */

        
  
/* ======================================================
   Responsive
====================================================== */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: chocolate;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content,
  .sub-dropdown-content {
    position: static;
    display: none;
  }

  .dropdown.open .dropdown-content,
  .sub-dropdown.open .sub-dropdown-content {
    display: block;
  }

  .breadcrumb {
    font-size: 12px;
    padding: 6px 10px;
  }

  .font_sizeVH {
    font-size: 16px;
  }

  .hotline {
    font-size: 11px;
    padding: 3px;
  }
}

@media (max-width: 600px) {
  footer {
    text-align: center;
  }
}

