.overlay-notification {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-notification.hidden {
    opacity: 0;
    visibility: hidden;
}
.overlay-notification.hidden.show, .overlay-notification.show {
    box-sizing: border-box;
}
@media (max-width: 767px) {
.overlay-notification {
		position: absolute;
		top: 0;
		height: 100%;
	}
	.product-details{
	position: relative;
	overflow: hidden;
}
}
.overlay-notification.show {
    opacity: 1;
    visibility: visible;
	display: flex;
    flex-direction: column;
	padding:0 20px;
	background: #f0f0f0f2;
	color: #000;
}

.overlay-notification .overlay-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
	justify-content: center;
}

.overlay-notification .btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.overlay-notification .btn-cart {
    background-color: #007bff; /* Màu xanh cho nút Xem giỏ hàng */
}

.overlay-notification .btn-checkout {
    background-color: #28a745; /* Màu xanh lá cho nút Thanh toán ngay */
}

.overlay-notification .btn:hover {
    opacity: 0.9;
}

p.tbtaive{	
    border: 3px dashed;
    padding: 2px 2px 2px 10px;
    border-color: #a8ff78 #7cf6ac #00c3ff #72aee6;
    font-size: 20px;
	width:100%;text-align: center
}
@keyframes blink {
  0% { color: #264653; }
  20% { color: #2a9d8f; }
  40% { color: #e9c46a; }
  60% { color: #f4a261; }
  80% { color: #e76f51; }
  100% { color: #264653; }
}
p.tbtaive>strong {
  animation: blink 1s infinite; /* 5s là thời gian hoàn thành một chu kỳ, infinite để lặp vô hạn */
}
button.button {
    font-size: 16px!important;
}
@keyframes notices {
   0% { opacity:1} 
   15% { opacity:1} 
   30% { opacity:1} 
   45% { opacity:1} 
   60% { opacity:1}
   75% { opacity:1}
   100% { opacity:0}
   
}
/* Ẩn tiêu đề h2 cũ (nếu có) để chỉ dùng breadcrumb */
.cart-content h2 {
    display: none; 
}

.tren {
    display: flex;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
    padding: 10px 0;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    color: #444;
}

.tren div {
    padding: 0 10px;
    text-align: center;
}

.tren .product-name { width: 40%; text-align: left; }
.tren .s-price { width: 15%; }
.tren .product-quantity { width: 15%; }
.tren .product-total { width: 15%; }
.tren .product-remove { width: 15%; }


/* ======================================= */
/* 2. DANH SÁCH SẢN PHẨM (#cart-items)     */
/* ======================================= */
#cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#cart-items li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#cart-items li:hover {
    background-color: #fafafa;
}

#cart-items li > * {
    padding: 0 10px;
    text-align: center;
}

#cart-items .product-name { 
    width: 40%; 
    text-align: left; 
    font-weight: 500;
    color: #333;
    text-decoration: none;
}
#cart-items .product-name:hover {
    color: #6200ea; /* Màu nhấn */
}

#cart-items .s-price,
#cart-items .product-total { 
    width: 15%; 
    font-weight: bold;
}

#cart-items .product-total {
    color: #007bff; /* Màu tổng tiền */
}


/* ======================================= */
/* 3. PHẦN SỐ LƯỢNG (Quantity)             */
/* ======================================= */
#cart-items .quantity {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    padding: 5px 0;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none; 
	
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; 
    margin: 0;
}

.decrease-quantity,
.increase-quantity {
    background-color: #f8f8f8;
    color: #555;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px 10px;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s;
}
.decrease-quantity:hover,
.increase-quantity:hover {
    background-color: #6200ea;
    color: white;
    border-color: #6200ea;
}


/* ======================================= */
/* 4. NÚT XÓA (.remove-btn)                */
/* ======================================= */
.remove-btn {
    width: 15%;
    background: none;
    color: #dc3545; /* Màu đỏ */
    border: 1px solid #dc3545;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    border-radius: 4px;
}

.remove-btn:hover {
    background-color: #dc3545;
    color: white;
}


/* ======================================= */
/* 5. TỔNG CỘNG VÀ NÚT CHỨC NĂNG (.tong, .cart-button) */
/* ======================================= */
p.tong {
    text-align: right;
    font-size: 1.5em;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid #ccc;
}

#total {
    color: #dc3545;
    font-weight: bold;
}

.cart-button {
    text-align: right;
    margin-top: 20px;
}

.cart-button a {
    text-decoration: none;
    margin-left: 10px;
}

.cart-button button {
    background-color: #6200ea; /* Màu xanh lá */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cart-button a:first-child button {
    background-color: #28a745; /* Màu xám cho Cửa Hàng */
}

.cart-button button:hover {
    opacity: 0.9;
}


/* ======================================= */
/* 6. GIỎ HÀNG TRỐNG (.gio-hang-trong)     */
/* ======================================= */
.gio-hang-trong {
    text-align: center;
    padding: 50px 0;
    border: 1px dashed #ccc;
    margin-top: 30px;
}

.gio-hang-trong p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.gio-hang-trong .button-fz {
    display: inline-block;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.gio-hang-trong .button-fz:hover {
    background-color: #0056b3;
}

/* ======================================= */
/* 7. TIÊU ĐỀ BƯỚC (BREADCRUMB)            */
/* ======================================= */
.checkout-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    padding: 20px 0;
    border-bottom: 2px solid #eee;
}

.checkout-breadcrumbs a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.2s;
}

.checkout-breadcrumbs a.current {
    color: #333; /* Màu cho bước hiện tại */
    font-weight: bold;
}

.checkout-breadcrumbs a.no-click {
    pointer-events: none; /* Không cho click vào bước chưa tới */
}

.checkout-breadcrumbs .breadcrumb-step {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #999;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 0.8em;
    font-weight: bold;
}

.checkout-breadcrumbs a.current .breadcrumb-step {
    background-color: #6200ea; /* Màu nền cho số bước hiện tại */
    border-color: #6200ea;
    color: white;
}

.checkout-breadcrumbs .divider {
    color: #ccc;
    font-size: 1.2em;
}

/* Biểu tượng chia ngăn (thay thế cho icon font) */
.checkout-breadcrumbs .divider i {
    font-style: normal;
    content: '›'; 
    margin: 0 5px;
}

/* Thiết kế cho màn hình nhỏ */
@media (max-width: 768px) {
    .checkout-breadcrumbs {
        font-size: 1.2em;
    }
    .tren, #cart-items li {
        font-size: 0.8em;
    }
    .tren .product-name, #cart-items .product-name { width: 30%; }
    .tren .s-price, #cart-items .s-price { width: 15%; }
    .tren .product-quantity, #cart-items .quantity { width: 25%; }
    .tren .product-total, #cart-items .product-total { width: 15%; }
    .tren .product-remove, #cart-items .remove-btn { width: 15%; }
}

/* ======================================= */
/* 1. THANH TOÁN                           */
/* ======================================= */
element.style {
    padding: 20px 10px;
    max-width: 900px;
    margin: 0 auto;
}
.checkout.page-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 20px;
}

.checkout-left {
    width: calc(65% - 30px);
    background: #f7f7f7;
    border-radius: 5px;
    padding: 0 20px;
    border: 2px dashed #007bff;
}

.checkout-right {
    width: 35%;
}
.form-group {
    display: flex;
    flex-direction: column;
}
form.form-help,form.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.registration-form .form-group{
	width: 45%;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cart-table th, .cart-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.cart-table td {
    font-size: 14px;
    min-width: 90px;
}

.cart-table tfoot td {
    font-size: 18px;
    font-weight: bold;
}

.payment-option label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.payment-method {
    margin: 20px 0;
    padding: 15px;
}

.payment-method h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.payment-option input {
    margin-right: 10px;
}

.payment-icon {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.payment-description {
    display: flex;
    align-items: center;
}

.form-help {
    display: block;
    margin-left: 15px;
    text-align: right
}

.hien-thi {
    border: 1px dashed red;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

.hien-thi #close-notification {
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    color: red;
    margin: 10px;
    font-size: 25px;
    border-radius: 100%;
    background: rgb(0 0 0 / 1%);
}

.hien-thi p {
    padding: 0 30px;
    color: red
}

.payment-icon {
    width: 100px;
    height: auto;
    margin-right: 10px;
}
form input[type="text"], form input[type="tel"], form input[type="email"]{
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
    margin-top: 5px;
    margin-bottom: 10px;
}
form input[type="password"] {
    flex: 1;
    padding: 10px;
    border: 1px solid red;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
    margin-top: 5px;
    margin-bottom: 10px;
}

form input[type="text"]:focus, form input[type="tel"]:focus, form input[type="email"]:focus, form input[type="password"]:focus {
    border-color: #6200ea;
    outline: none;
}

form input[type="submit"] {
    background-color: #6200ea;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
}

form input[type="submit"]:hover {
    background-color: #3700b3;
    transform: translateY(-2px);
}
small,form label {
    flex: 1;
    color: #555;
    margin-right: 10px;
	font-size: 13px;
    margin-top: 5px;
}

big {
    font-size: 14px
}




/* Mini Cart Styles */
#mini-cart {
    position: relative;
    display: inline-block;
}

#mini-cart-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: transform 0.2s;
}

#mini-cart-toggle:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Mini Cart Content - Ẩn mặc định */
#mini-cart-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Hiển thị khi có class show */
#mini-cart-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow indicator */
#mini-cart-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Mini Cart Items */
.mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-items li {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mini-cart-items li:hover {
    background: #f9f9f9;
}

.mini-cart-items li:last-child {
    border-bottom: none;
}

.mini-cart-items a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-cart-items a:hover {
    color: #6200ea;
}

.mini-qty {
    font-size: 13px;
    color: #666;
}

.mini-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mini-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.mini-remove:hover {
    background: #cc0000;
}

/* Mini Cart Total */
.mini-total {
    padding: 12px 16px;
    margin: 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

#mini-total {
    color: #6200ea;
    font-weight: bold;
}

/* Mini Cart Actions */
.mini-cart-actions {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-cart-actions .btn {
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: white;
    color: #333;
}

.mini-cart-actions .btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.mini-cart-actions .btn-primary {
    background: #6200ea;
    color: white;
    border-color: #6200ea;
}

.mini-cart-actions .btn-primary:hover {
    background: #4a00b8;
    border-color: #4a00b8;
}

/* Empty Cart */
.empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Scrollbar styling */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 480px) {
    #mini-cart-content {
        right: -20px;
        min-width: 280px;
    }
    
    .mini-cart-items li {
        grid-template-columns: 1fr auto;
        gap: 4px;
    }
    
    .mini-qty,
    .mini-price {
        grid-column: 1;
        font-size: 12px;
    }
    
    .mini-remove {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}