/* ------------------------------------------------------------------
 * cart.css - giao diện trang giỏ hàng và trang đặt hàng thành công.
 *
 * Dùng chung cho các giao diện, không cần phải sửa trong các giao diện con.
 * Các giao diện con chỉ cần include file CSS nay vào header, hoặc include 
 * file header.php (xem front/common/header.php).
 *
 * ------------------------------------------------------------------ */


/* ===== Trang giỏ hàng (gh-) ===== */
/* Rộng 1200px + lề 16px để thẳng mép với breadcrumb chung (.category_product). */
.gh-wrap{max-width:1232px;margin:0 auto;padding:0 16px 64px;box-sizing:border-box;

	font-family:Arial,Helvetica,sans-serif;color:#333;line-height:1.5}

.gh-wrap *{box-sizing:border-box}

.gh-money{color:red}




/* ---- danh sách sản phẩm ---- */

.gh-list{background:#fff;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}

.gh-head,.gh-item{display:flex;align-items:center;gap:14px;padding:14px 18px}

.gh-head{background:#fafafa;border-bottom:1px solid #e5e5e5;font-size:12px;font-weight:bold;

	color:#1f2328;text-transform:uppercase;letter-spacing:.5px}

.gh-item{border-bottom:1px solid #f0f0f0}

.gh-item:last-child{border-bottom:0}

.gh-c-pro{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:14px}

.gh-c-price,.gh-c-sum{flex:0 0 132px;text-align:right}

.gh-c-qty{flex:0 0 92px;text-align:center}

.gh-c-del{flex:0 0 40px;text-align:center}

.gh-thumb{flex:0 0 64px}

.gh-thumb img{width:64px;height:auto;display:block;border:1px solid #eee;border-radius:4px}

.gh-name{font-size:14px;line-height:1.5;color:#333;text-decoration:none;font-weight:bold}

.gh-name:hover{text-decoration:underline;color:#000}

.gh-note{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:#8b9199;font-style:normal}

.gh-price{font-size:14px;color:#5a6069}

.gh-sum{font-size:15px;font-weight:bold}

.gh-qty{width:64px;height:34px;text-align:center;border:1px solid #d8dade;border-radius:4px;

	font-size:14px;padding:0 4px;background:#fff;color:#333}

.gh-qty:focus{border-color:#333;outline:0}

.gh-del{width:32px;height:32px;border-radius:50%;border:0;background:#f2f2f3;color:#8b9199;

	cursor:pointer;font-size:17px;line-height:32px;padding:0}

.gh-del:hover{background:#333;color:#fff}




/* ---- mã giảm giá + tổng tiền ---- */

.gh-foot{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;align-items:stretch}

.gh-box{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:18px;flex:1 1 320px;min-width:0}

.gh-box-label{margin:0 0 10px;font-size:12px;font-weight:bold;color:#1f2328;

	text-transform:uppercase;letter-spacing:.5px}

.gh-coupon-row{display:flex;gap:8px;flex-wrap:wrap}

#ma_giam_gia{flex:1 1 160px;min-width:0;height:42px;border:1px solid #d8dade;border-radius:4px;

	padding:0 12px;font-size:14px;text-transform:uppercase;background:#fff;color:#333}

#ma_giam_gia:focus{border-color:#333;outline:0}

.gh-btn-coupon{flex:0 0 auto;height:42px;padding:0 22px;border-radius:4px;border:1px solid #777;

	background:#777;color:#fff;font-size:14px;font-weight:bold;cursor:pointer}

.gh-btn-coupon:hover{background:#555;color:#fff}

#thongBaoMgg{margin-top:10px;font-size:13px;line-height:1.5}

.gh-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;

	padding:9px 0;font-size:14px;color:#5a6069}

.gh-line + .gh-line{border-top:1px solid #f0f0f0}

.gh-grand{border-top:2px solid #e5e5e5;margin-top:4px;padding-top:14px;

	font-size:17px;color:#1f2328;font-weight:bold}



/* ---- button ---- */

.gh-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}

.gh-btn{display:inline-block;padding:14px 30px;border-radius:4px;font-size:15px;font-weight:bold;

	text-decoration:none;text-align:center;border:1px solid transparent;cursor:pointer;

	text-transform:uppercase;letter-spacing:.3px}

.gh-btn-main{background:#333;color:#fff;border-color:#333;flex:1 1 260px}

.gh-btn-main:hover{background:#000;border-color:#000;color:#fff}

.gh-btn-alt{background:#777;color:#fff;border-color:#777;flex:0 1 230px}

.gh-btn-alt:hover{background:#555;border-color:#555;color:#fff}


/* ---- giỏ hàng trống ---- */

.gh-empty{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:56px 24px;text-align:center}

.gh-empty p{margin:0 0 22px;font-size:16px;color:#8b9199}




/* ---- form thông tin + thanh toán  ---- */

.box_input{margin-top:24px}

.gh-form{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:22px}

.gh-form-title{margin:0 0 4px;font-size:16px;font-weight:bold;color:#1f2328}

.gh-form-sub{margin:0 0 18px;font-size:13px;color:red}

.gh-fields{display:flex;flex-wrap:wrap;gap:12px}

.gh-fields input[type=text]{flex:1 1 240px;min-width:0;height:44px;border:1px solid #d8dade;

	border-radius:4px;padding:0 13px;font-size:14px;width:auto;margin:0;background:#fff;color:#333}

.gh-fields input[type=text]:focus{border-color:#333;outline:0}

.gh-fields .gh-full{flex:1 1 100%}

.gh-pay-title{margin:24px 0 12px;font-size:12px;font-weight:bold;color:#1f2328;

	text-transform:uppercase;letter-spacing:.5px}

.gh-pay{border:1px solid #e5e5e5;border-radius:6px;padding:14px 16px;margin-bottom:10px;

	cursor:pointer;display:flex;align-items:center;gap:14px}

.gh-pay:hover{border-color:#333}

.gh-pay input[type=radio]{flex:0 0 auto;width:18px;height:18px;margin:0;cursor:pointer;accent-color:#333}

.gh-pay-logo{flex:0 0 auto;display:flex;align-items:center}

.gh-pay-logo img{display:block;max-height:38px;width:auto;border-radius:3px}

.gh-pay-text{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.6;color:#5a6069}

.gh-pay-text strong{color:#333}



@media (max-width:780px){

	.gh-wrap{padding:0 12px 52px}

	.gh-head{display:none}

	.gh-item{flex-wrap:wrap;padding:16px 14px;gap:10px}

	.gh-c-pro{flex:1 1 100%}

	.gh-c-price{flex:1 1 auto;text-align:left;order:2}

	.gh-c-qty{flex:0 0 auto;order:3}

	.gh-c-sum{flex:1 1 auto;text-align:right;order:4}

	.gh-c-del{flex:0 0 auto;order:5}

	.gh-c-price:before{content:"Đơn giá: ";color:#8b9199;font-size:12px}

	.gh-c-sum:before{content:"Thành tiền: ";color:#8b9199;font-size:12px;font-weight:normal;color:#8b9199}

	.gh-btn-main,.gh-btn-alt{flex:1 1 100%}

	.gh-pay{flex-wrap:wrap}

	.gh-pay-text{flex:1 1 100%}

}


/* ===== Trang đặt hàng thành công (dhtc-) ===== */
.dhtc-wrap{max-width:680px;margin:0 auto;padding:34px 16px 72px;box-sizing:border-box;

	font-family:Arial,Helvetica,sans-serif;color:#333}

.dhtc-crumb{font-size:13px;color:#8b9199;margin:0 0 22px;text-transform:uppercase}

.dhtc-crumb a{color:#8b9199;text-decoration:none}

.dhtc-crumb a:hover{color:#d62e4d}

.dhtc-card{background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:44px 32px 38px;text-align:center}

.dhtc-icon{width:82px;height:82px;border-radius:50%;margin:0 auto 22px;display:block;

	line-height:0;padding:22px;box-sizing:border-box}

.dhtc-icon svg{width:38px;height:38px;display:block}

.dhtc-ok{background:#e8f6ee}

.dhtc-wait{background:#fff4e5}

.dhtc-no{background:#fdeaee}

.dhtc-title{margin:0 0 12px;font-size:25px;line-height:1.3;font-weight:bold;color:#1f2328;

	text-transform:uppercase;letter-spacing:.3px}

.dhtc-desc{margin:0 auto;max-width:470px;font-size:15px;line-height:1.7;color:#5a6069}

.dhtc-desc strong{color:#d62e4d}

.dhtc-info{margin:30px 0 0;padding:22px 24px;list-style:none;background:#fafafa;

	border:1px solid #eceef0;border-radius:8px;text-align:left}

.dhtc-info-title{margin:0 0 14px;font-size:12px;font-weight:bold;color:#8b9199;

	text-transform:uppercase;letter-spacing:.6px}

.dhtc-row{display:flex;flex-wrap:wrap;gap:6px 14px;padding:8px 0;border-top:1px solid #eceef0;

	font-size:14px;line-height:1.6}

.dhtc-row:first-of-type{border-top:0}

.dhtc-k{flex:0 0 150px;color:#8b9199}

.dhtc-v{flex:1 1 180px;color:#333;font-weight:bold;word-break:break-word}

.dhtc-note{margin:14px 0 0;font-size:13px;line-height:1.6;color:#8b9199}

.dhtc-green{color:#1a9e5f}

.dhtc-red{color:#d62e4d}

.dhtc-actions{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

.dhtc-btn{display:inline-block;padding:13px 30px;border-radius:6px;font-size:15px;font-weight:bold;

	text-decoration:none;border:1px solid transparent;white-space:nowrap}

.dhtc-btn-main{background:#d62e4d;color:#fff;border-color:#d62e4d}

.dhtc-btn-main:hover{background:#bf2743;color:#fff}

.dhtc-btn-alt{background:#fff;color:#333;border-color:#d8dade}

.dhtc-btn-alt:hover{border-color:#b6b9bf;color:#333}

.dhtc-help{margin:26px 0 0;font-size:13px;line-height:1.6;color:#8b9199;text-align:center}

.dhtc-help a{color:#d62e4d;text-decoration:none;font-weight:bold}

@media (max-width:600px){

	.dhtc-wrap{padding:20px 14px 56px}

	.dhtc-card{padding:34px 18px 30px;border-radius:8px}

	.dhtc-title{font-size:20px}

	.dhtc-info{padding:18px 16px}

	.dhtc-k{flex:0 0 100%}

	.dhtc-v{flex:0 0 100%}

	.dhtc-actions{flex-direction:column}

	.dhtc-btn{display:block;width:100%;box-sizing:border-box}

}

/* ===== Tiện ích dùng chung ===== */

.gh-strike{text-decoration:line-through}
.gh-minw0{min-width:0}
.gh-ok{color:#1a9e5f}
.dhtc-vnp-a{color:#de0225}
.dhtc-vnp-b{color:#1463a4}
.dhtc-fundiin{color:#00b0f0}
.dhtc-momo{color:#aa0062}
