:root {
    --bg-color: #fafafa;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent-orange: #ea580c; /* Cam chủ đạo */
    --accent-red: #dc2626;    /* Đỏ chủ đạo */
    --surface-white: #ffffff;
    --light-orange: #ffebd8;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-light: rgba(234, 88, 12, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(234, 88, 12, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(234, 88, 12, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--accent-red);
    transition: transform 0.3s;
}

.logo span {
    color: var(--accent-orange);
}

.logo:hover {
    transform: scale(1.05);
}

/* Link Bài Tập Thực Hành */
.practice-link {
    text-decoration: none;
    color: var(--accent-red);
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px dashed var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: var(--light-orange);
    transition: all 0.3s ease;
    animation: pulseBorder 2s infinite;
}

.practice-link:hover {
    background-color: var(--accent-orange);
    color: var(--surface-white);
    border-style: solid;
    transform: translateY(-2px);
}

@keyframes pulseBorder {
    0% { border-color: var(--accent-orange); }
    50% { border-color: var(--accent-red); }
    100% { border-color: var(--accent-orange); }
}

/* Nav Menu (Desktop) */
.menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.menu-item:hover, .menu-item.active {
    color: var(--accent-orange);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.menu-item:hover::after, .menu-item.active::after {
    width: 100%;
}

/* Cart badge style */
.cart-badge {
    background: var(--accent-red);
    color: var(--surface-white);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    vertical-align: top;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-auth {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth:hover {
    background-color: var(--accent-orange);
    color: var(--surface-white);
}

.btn-auth.btn-primary-color {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: var(--surface-white);
    border: none;
}

.btn-auth.btn-primary-color:hover {
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

/* Mobile Actions (Mobile cart & Hamburger) */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.btn-mobile-cart {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: var(--accent-orange);
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mobile-cart .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
}

.btn-hamburger {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent-red);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Slideshow Banner (Live Show) --- */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffcf9 0%, #ffebe3 100%);
    border-bottom: 4px solid var(--accent-orange);
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 0 10%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9) rotate(-5deg);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-item.active .slide-image-side {
    transform: scale(1) rotate(-8deg);
}

.slide-image-side img {
    max-width: 85%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(234, 88, 12, 0.25));
}

.slide-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    transform: translateY(30px);
    transition: transform 0.8s ease-out;
}

.slide-item.active .slide-content-side {
    transform: translateY(0);
}

.slide-category {
    color: var(--accent-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.slide-content-side h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.slide-content-side p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.slide-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 2rem;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
}

.btn-slide-order {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: var(--surface-white);
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.25);
}

.btn-slide-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(220, 38, 38, 0.35);
}

.btn-slide-detail {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 2px solid var(--accent-orange);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-slide-detail:hover {
    background-color: var(--light-orange);
    color: var(--accent-orange);
}

/* Controls */
.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--accent-orange);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    z-index: 10;
}

.slide-control:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: var(--surface-white);
}

.slide-control.prev { left: 2%; }
.slide-control.next { right: 2%; }

.slideshow-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--accent-orange);
    width: 30px;
    border-radius: 10px;
}


/* --- Main Layout --- */
#app {
    flex: 1;
    padding: 4rem 5%;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.products-container {
    animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    border-radius: 2px;
}

/* --- 4x4 Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on Desktop */
    gap: 2.2rem;
}

.product-card {
    background: var(--surface-white);
    border-radius: 20px;
    padding: 1.2rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    height: 240px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fdfdfd;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
}

.product-image-container img {
    max-width: 90%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.06));
}

.product-card:hover .product-image-container img {
    transform: scale(1.1) rotate(-3deg);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-red);
}

.btn-order-card {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}


/* --- Product Detail View --- */
.detail-view {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    transition: color 0.3s;
    font-family: inherit;
}

.back-btn:hover {
    color: var(--accent-orange);
}

.detail-image-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
}

.detail-image-wrapper img {
    max-width: 90%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.1));
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-category {
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 2rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    padding: 1.1rem 3.5rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: var(--surface-white);
    transform: scale(1.05);
}


/* --- Modals Base --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--surface-white);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-red);
}

/* Modal Grid Order Design */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    margin-top: 1rem;
}

.modal-image-side {
    background: #f9fafb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #f3f4f6;
}

.modal-image-side img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.08));
}

.modal-details-side h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.modal-option-group {
    margin-bottom: 1.5rem;
}

.modal-option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

/* Choice Buttons */
.size-selector-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}

.btn-option-choice {
    background: var(--surface-white);
    border: 2px solid #e5e7eb;
    color: var(--text-primary);
    padding: 0.8rem 0;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-option-choice:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-option-choice.selected {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--surface-white);
}

.color-selector-flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-btn-choice {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.color-btn-choice.selected {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--accent-orange);
}

.selected-label {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.btn-confirm-order {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.2);
    margin-top: 1rem;
}

.btn-confirm-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* --- Auth Modal (Login/Register) Form Styles --- */
.auth-content {
    max-width: 450px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
    margin-top: 1rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
    font-family: inherit;
}

.auth-tab.active {
    color: var(--accent-orange);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.08);
}


/* --- Search Modal Layout --- */
.search-content {
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.search-input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #f3f4f6;
}

.search-result-item:hover {
    background-color: var(--light-orange);
}

.search-result-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
}

.search-result-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.search-result-cat {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-result-price {
    font-weight: 700;
    color: var(--accent-red);
}

.search-tip {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 0;
}


/* --- Cart Modal Layout --- */
.cart-content {
    max-width: 600px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.cart-item-row img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f9fafb;
    border-radius: 8px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
}

.cart-item-price {
    font-weight: 800;
    color: var(--accent-red);
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-remove-item:hover {
    color: var(--accent-red);
    background-color: #fef2f2;
}

.empty-cart-msg {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cart-total-section {
    margin-top: 2rem;
    border-top: 2px solid #f3f4f6;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-price {
    font-size: 1.4rem;
    font-weight: 600;
}

.cart-total-price span {
    font-weight: 800;
    color: var(--accent-red);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}


/* ==========================================================================
   CHECKOUT PAGE STYLES (Trang thanh toán)
   ========================================================================== */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.checkout-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.checkout-form-section, .checkout-summary-section {
    background: var(--surface-white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.checkout-form-section h2, .checkout-summary-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.checkout-form-section h2::after, .checkout-summary-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.payment-methods-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.method-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: all 0.3s;
}

.method-card input {
    margin-top: 0.25rem;
    accent-color: var(--accent-orange);
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.method-details i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.method-details span {
    font-weight: 600;
    font-size: 0.95rem;
}

.method-card:hover {
    border-color: var(--accent-orange);
}

/* Radio check selection hack */
.method-card:has(input:checked) {
    border-color: var(--accent-orange);
    background-color: var(--light-orange);
}

.btn-confirm-checkout {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    border: none;
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.2);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-confirm-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.checkout-summary-row-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f3f4f6;
}

.checkout-summary-row-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.item-summary-info {
    flex-grow: 1;
}

.item-summary-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-summary-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.1rem 0;
}

.item-summary-info .price-val {
    font-weight: 700;
    color: var(--accent-red);
    font-size: 0.95rem;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-row.total-row {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 800;
}

.summary-row.total-row span:last-child {
    color: var(--accent-red);
}


/* --- Footer Section --- */
.footer {
    background: var(--surface-white);
    padding: 5rem 10% 2.5rem;
    margin-top: auto;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--accent-red);
}

.footer-brand h3 span {
    color: var(--accent-orange);
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer-links p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.social-flex {
    display: flex;
    gap: 1rem;
}

.social-flex a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-flex a:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: var(--surface-white);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f3f4f6;
}


/* --- VIEW TRANSITIONS (Custom Shoe Hero) --- */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
}

::view-transition-old(shoe-hero) {
    animation: 0.4s cubic-bezier(0.25, 1, 0.3, 1) both fade-out;
}
::view-transition-new(shoe-hero) {
    animation: 0.4s cubic-bezier(0.25, 1, 0.3, 1) both fade-in;
}

@keyframes fade-out {
    to { opacity: 0; }
}
@keyframes fade-in {
    from { opacity: 0; }
}

.hero-transition {
    view-transition-name: shoe-hero;
}


/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-slideshow {
        height: 480px;
    }
    .slide-content-side h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 1.2rem 4%;
    }
    .practice-link {
        display: none; /* Hide practice link on medium screens to avoid overlaps */
    }
    
    .hero-slideshow {
        height: 420px;
    }
    .slide-item {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
        text-align: center;
    }
    .slide-image-side {
        display: none; /* Hide slideshow image on medium screens to let text shine */
    }
    .slide-content-side {
        padding-left: 0;
        align-items: center;
    }
    .slide-content-side h2 {
        font-size: 2.6rem;
    }
    .slide-content-side p {
        max-width: 100%;
    }
    .slide-buttons {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .detail-view {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .detail-image-wrapper {
        height: 380px;
    }
    .detail-title {
        font-size: 2.5rem;
        text-align: center;
    }
    .detail-price {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .detail-desc {
        text-align: center;
        margin-bottom: 2rem;
    }
    .detail-content .actions {
        justify-content: center;
    }
    
    /* Checkout responsive adjustment */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .auth-buttons {
        display: none; /* Hide standard login register */
    }
    
    .mobile-actions {
        display: flex; /* Show Cart and Hamburger side by side */
    }
    
    /* Hamburger Menu position */
    .menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--surface-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #f3f4f6;
        border-bottom: 3px solid var(--accent-orange);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
    }
    
    .menu.active {
        max-height: 350px;
    }
    
    .menu-item {
        width: 100%;
        text-align: center;
        padding: 1.2rem 0;
        border-bottom: 1px solid #f3f4f6;
        font-size: 1.15rem;
    }
    
    .menu-item::after {
        display: none; /* No underlines on mobile menu */
    }
    
    .menu-item.active {
        background-color: var(--light-orange);
        color: var(--accent-orange);
        font-weight: 700;
    }
    
    /* Slideshow styling for small mobiles */
    .hero-slideshow {
        height: 360px;
    }
    .slide-content-side h2 {
        font-size: 2.1rem;
    }
    .slide-content-side p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    .slide-price {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    .btn-slide-order, .btn-slide-detail {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }
    
    /* Product list 1 column */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Modals adjustments */
    .modal-content {
        padding: 1.8rem;
        border-radius: 20px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .modal-image-side img {
        max-height: 180px;
    }
    .modal-details-side h2 {
        font-size: 1.5rem;
    }
    .modal-price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .size-selector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Checkout form mobile padding */
    .checkout-form-section, .checkout-summary-section {
        padding: 1.5rem;
    }
    
    .payment-methods-flex {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LABTH DASHBOARD STYLES (Trang Bài Thực Hành)
   ========================================================================== */
.lab-container {
    animation: pageIn 0.5s ease-out;
    padding: 1rem 0;
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lab-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.lab-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Columns on Desktop */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.lab-card {
    background-color: var(--surface-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.lab-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-orange);
}

.lab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lab-list li a {
    display: block;
    text-decoration: none;
    color: var(--accent-red);
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.lab-list li a:hover {
    background-color: var(--light-orange);
    color: var(--accent-orange);
    transform: translateX(4px);
}

/* Lab responsive details */
@media (max-width: 1200px) {
    .lab-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .lab-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .lab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
}