/* BanHang Tech - Tham khảo thiết kế https://akstek.io.vn/ */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #457b9d;
    --success: #2a9d8f;
    --warning: #f4a261;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Be Vietnam Pro', 'Segoe UI', Tahoma, Arial, sans-serif;
    --header-height: 70px;
    --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

input, button, select, textarea {
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--secondary);
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.4rem 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-contact span + span { margin-left: 1.5rem; }
.header-links a { color: rgba(255,255,255,0.85); margin-left: 1rem; }
.header-links a:hover { color: #fff; }

.header-main { padding: 0.75rem 0; }

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-form {
    flex: 1;
    max-width: 520px;
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-form:focus-within { border-color: var(--primary); }

.search-form input {
    flex: 1;
    border: none;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    outline: none;
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover { background: var(--primary-dark); }

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s;
}

.header-action:hover { color: var(--primary); }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8125rem;
    margin-top: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.main-nav {
    background: var(--secondary);
    border-top: 3px solid var(--primary);
}

.nav-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.nav-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-link-sale { color: var(--warning) !important; }

/* ===== ALERTS ===== */
.alert {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ===== MAIN ===== */
.main-content { min-height: 60vh; padding-bottom: 3rem; }

/* ===== HERO ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #2a5298 50%, var(--accent) 100%);
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content h1 span { color: var(--warning); }

.hero-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== SECTIONS ===== */
.section { padding: 2.5rem 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 2px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.section-link:hover { text-decoration: underline; }

/* ===== CATEGORIES ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.category-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.category-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img { transform: scale(1.05); }

.badge-sale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-icon {
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

.btn-quick-view {
    flex: 1;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.375rem 0 0.75rem;
    line-height: 1.4;
    flex: 1;
}

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

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.price-original {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: line-through;
}

.price-current {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
}

.discount-tag {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.product-price-lg .price-current { font-size: 1.75rem; }

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.feature-item h4 { margin-bottom: 0.25rem; color: var(--secondary); }
.feature-item p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 2rem 0 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--secondary);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.product-detail-gallery {
    position: relative;
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-gallery img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-description {
    margin: 1.5rem 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.product-specs {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.product-specs h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.product-specs li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
}

.qty-btn:hover { background: var(--bg); }

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
}

/* ===== CART ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.cart-table {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: var(--radius);
}

.cart-update-form input {
    width: 60px;
    padding: 0.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.btn-remove:hover { color: var(--primary); }

.cart-summary {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.cart-summary h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
}

.summary-total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.125rem;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.continue-shopping:hover { color: var(--primary); }

/* ===== EMPTY / ERROR ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-icon { font-size: 4rem; margin-bottom: 1rem; }

.error-page .error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--surface);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== POLICY ===== */
.policy-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    line-height: 1.8;
}

/* Nội dung bài viết từ CKEditor */
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--secondary);
    margin: 1.25rem 0 0.75rem;
}

.article-body h2 { font-size: 1.375rem; }
.article-body h3 { font-size: 1.125rem; }

.article-body p { margin-bottom: 1rem; }

.article-body ul,
.article-body ol {
    margin: 0 0 1rem 1.5rem;
}

.article-body li { margin-bottom: 0.375rem; }

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-body th,
.article-body td {
    border: 1px solid var(--border);
    padding: 0.625rem;
    text-align: left;
}

.article-body th {
    background: var(--bg);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-info li,
.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a:hover { color: #fff; }

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8125rem;
}

.footer-bottom a { color: var(--warning); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .header-top { display: none; }

    .mobile-menu-toggle { display: flex; }

    .header-main-inner { flex-wrap: wrap; }

    .search-form {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
    }

    .main-nav.open { display: block; }

    .nav-list { flex-direction: column; }

    .cart-table { font-size: 0.8125rem; }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { display: none; }

    .hero-banner { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card-body { padding: 0.75rem; }
    .product-title { font-size: 0.8125rem; }
    .header-action span:not(.cart-badge) { display: none; }
}

/* ===== CHECKOUT ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.checkout-section {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.checkout-section h2 {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.required { color: var(--primary); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: var(--primary);
}

.field-error {
    display: block;
    color: var(--primary);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.04);
}

.payment-option input { margin-top: 0.25rem; accent-color: var(--primary); }

.payment-option-body { display: flex; flex-direction: column; gap: 0.125rem; }
.payment-option-body strong { font-size: 0.9375rem; }
.payment-option-body small { color: var(--text-muted); font-size: 0.8125rem; }

.checkout-summary {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.checkout-summary h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.checkout-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--bg);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.checkout-item-info { flex: 1; min-width: 0; }

.checkout-item-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.checkout-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shipping-hint {
    font-size: 0.8125rem;
    color: var(--success);
    margin-bottom: 0.75rem;
}

/* ===== ORDER SUCCESS ===== */
.order-success {
    max-width: 800px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.order-success h1 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.order-info-card,
.order-items-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.order-code {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.order-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-shipping { background: #ede9fe; color: #5b21b6; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-address { margin-bottom: 1rem; }

.bank-info {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.bank-info p { margin-top: 0.375rem; }

.order-items-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.order-table th,
.order-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.order-table th {
    background: var(--bg);
    font-size: 0.8125rem;
}

.order-total-row td {
    border-top: 2px solid var(--border);
    font-size: 1.0625rem;
}

.success-actions { margin-top: 1.5rem; }

@media (max-width: 992px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .order-info-grid { grid-template-columns: 1fr; }
}
