@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* ── Ocean Elegance Palette ── */
    --primary-color: #0F2027;
    --secondary-color: #203A43;
    --accent-color: #2C5364;

    /* Alias cho code cũ vẫn hoạt động */
    --primary: #2C5364;
    --primary-hover: #203A43;
    --primary-light: rgba(44, 83, 100, 0.10);
    --primary-glow: rgba(44, 83, 100, 0.30);
    --accent: #203A43;
    --accent-glow: rgba(32, 58, 67, 0.30);
    --warm: #C8A96E;
    --mint: #4A9B8E;
    --gradient-brand: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
    --gradient-accent: linear-gradient(135deg, #2C5364 0%, #4A9B8E 100%);
    --secondary: #1C2D37;
    --bg-color: #F4F7F6;
    --bg-light: #F4F7F6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(44, 83, 100, 0.10);
    --text-main: #1C2D37;
    --text-muted: #5A7280;
    --border: #D8E4E8;

    /* Cinematic Shadows */
    --shadow-sm: 0 4px 15px rgba(15, 32, 39, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 32, 39, 0.12);
    --shadow-lg: 0 20px 50px rgba(15, 32, 39, 0.18);

    /* Tối giản geometry */
    --radius: 4px;
    --radius-sm: 2px;
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --transition: all 0.30s cubic-bezier(0.25, 0.8, 0.25, 1);
}

::selection {
    background: var(--primary);
    color: white;
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arimo', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(44, 83, 100, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(15, 32, 39, 0.04) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ================= Custom Scrollbar ================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-brand);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* ================= Navbar ================= */
.navbar {
    background: rgba(15, 32, 39, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(15, 32, 39, 0.25);
    border-bottom: 1px solid rgba(44, 83, 100, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 5%;
    background: rgba(15, 32, 39, 0.98);
    box-shadow: 0 4px 30px rgba(15, 32, 39, 0.4);
}

.navbar .logo img {
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 32px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    transition: transform 0.2s;
}

.navbar .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #C8A96E;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #ffffff;
}

.btn-logout {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.15);
    padding: 8px 14px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

/* ================= Buttons ================= */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 125%;
}

.btn-primary:hover {
    transform: translateY(-4px) rotate(-1deg) scale(1.03);
    box-shadow: 0 12px 28px var(--primary-glow);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.95);
}

.btn-primary i {
    font-size: 14px;
    margin-right: 8px;
}

/* ================= Form & Inputs ================= */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13.5px;
    letter-spacing: 0.3px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Arimo', sans-serif;
    font-size: 15px;
    background: white;
    color: var(--text-main);
    transition: var(--transition);
}

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
}

.input-icon-group input {
    padding-left: 46px;
}

.input-icon-group input:focus + i,
.input-icon-group:has(input:focus) i {
    color: var(--primary);
}

input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ================= Layout Containers ================= */
main {
    flex: 1;
    padding: 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    width: 100%;
}

/* Auth Cards */
.auth-wrapper {
    display: flex;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.auth-image {
    flex: 1.1;
    position: relative;
    background: url('../images/ChatGPT Image 11_16_13 1 thg 7, 2026.png') center center / cover no-repeat;
    display: none;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
    color: white;
}

.auth-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.60) 0%, rgba(44, 83, 100, 0.40) 100%);
    z-index: 1;
}

.auth-image::after {
    display: none;
}

@media (min-width: 768px) {
    .auth-image { display: flex; }
}

.auth-image-content {
    position: relative;
    z-index: 2;
}

.auth-image-content i {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.95;
}

.auth-image-content h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.auth-image-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

.auth-form {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h2 {
    margin-bottom: 8px;
    font-size: 30px;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.auth-form p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

/* ================= Home Components ================= */
.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    background: var(--primary-color);
    margin-bottom: 70px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.8s ease-out;
}

/* Ảnh nền full-bleed */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/beach_couple.jpg');
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

/* Dark overlay Ocean Elegance */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 32, 39, 0.55);
    z-index: 1;
}

.hero-image-wrapper {
    display: none;
}

.hero-image-wrapper img {
    display: none;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6%, 4%) scale(1.12); }
}

.hero-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease-out both;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 60px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 64px;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 2px;
    font-weight: 900;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content h1 .accent-word {
    background: linear-gradient(135deg, #4A9B8E 0%, #C8A96E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content a.btn-primary {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.80);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.feature-item {
    position: relative;
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:nth-child(1) { animation-delay: 0.05s; }
.feature-item:nth-child(2) { animation-delay: 0.15s; }
.feature-item:nth-child(3) { animation-delay: 0.25s; }
.feature-item:nth-child(4) { animation-delay: 0.35s; }

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-item:hover i {
    background: var(--gradient-brand);
    color: white;
    transform: rotate(360deg) scale(1.05);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= Products Components ================= */
.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 16px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.filter-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px var(--primary-glow);
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: transform 0.30s ease, box-shadow 0.30s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out both;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    background: var(--gradient-brand) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:nth-child(1) { animation-delay: 0.04s; }
.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.16s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.24s; }
.product-card:nth-child(7) { animation-delay: 0.28s; }
.product-card:nth-child(8) { animation-delay: 0.32s; }

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

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: #f8f9fa;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(15, 32, 39, 0.75));
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-overlay .btn-primary {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 20px;
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 700;
}

.product-info p.price {
    color: var(--primary);
    font-size: 19px;
    font-weight: 800;
}

/* ================= Blog Cards ================= */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.55s ease-out both;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.15s; }
.blog-card:nth-child(3) { animation-delay: 0.25s; }

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

.blog-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover img {
    transform: scale(1.06);
}

.blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

/* ================= Cart & Checkout ================= */
.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-items {
    flex: 2;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}

.cart-summary {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    position: sticky;
    top: 100px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.cart-item img {
    width: 90px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.item-details .price {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid var(--border);
}

.quantity-controls button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-controls button:hover {
    color: var(--primary);
}

.quantity-controls input {
    width: 35px;
    text-align: center;
    background: none;
    border: none;
    font-weight: 700;
    padding: 0;
    outline: none;
    box-shadow: none;
    color: var(--text-main);
}

.btn-delete {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 20px;
    font-weight: 850;
    border-top: 1.5px solid var(--border);
    padding-top: 20px;
}

/* ================= Profile & Admin ================= */
.dashboard-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--card-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--primary-light);
}

/* ================= Footer ================= */
footer {
    background: var(--secondary);
    color: white;
    padding: 70px 5% 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-brand);
    background-size: 200% 100%;
    animation: gradientSlide 6s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 800;
}

.footer-col p {
    color: #a7a2b0;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.footer-col p a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8c8896;
    font-size: 14px;
}

/* ================= Size Guide Modal ================= */
#size-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 32, 39, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#size-guide-modal.open {
    display: flex;
}

.size-guide-card {
    background: white;
    border-radius: var(--radius);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    animation: successCardIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

.size-guide-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.size-guide-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.size-guide-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--secondary);
}

.size-guide-card > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.size-guide-table th {
    background: var(--gradient-brand);
    color: white;
    padding: 12px 10px;
    font-weight: 700;
    text-align: center;
}

.size-guide-table th:first-child { border-radius: 10px 0 0 0; }
.size-guide-table th:last-child { border-radius: 0 10px 0 0; }

.size-guide-table td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.size-guide-table tr:nth-child(even) td {
    background: var(--bg-color);
}

.size-guide-table td:first-child {
    font-weight: 800;
    color: var(--primary);
}

.size-guide-note {
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================= Reveal on Scroll ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= Chat FAB ================= */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(15, 32, 39, 0.4);
    z-index: 2000;
    transition: var(--transition);
    animation: chatPulse 2.4s infinite;
}

.chat-fab:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 106, 255, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(0, 106, 255, 0.7), 0 0 0 8px rgba(0, 106, 255, 0.12); }
}

@media (max-width: 480px) {
    .chat-fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
}

/* ================= Toast Notification ================= */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
    pointer-events: all;
    opacity: 0;
    transform: translateX(110%) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1),
                transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.toast.toast-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateX(110%) scale(0.95);
}

.toast-success { border-left-color: #00C896; }
.toast-error   { border-left-color: #FF4757; }
.toast-warning { border-left-color: #FFA502; }
.toast-info    { border-left-color: var(--primary); }

.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.toast-success .toast-icon { color: #00C896; }
.toast-error   .toast-icon { color: #FF4757; }
.toast-warning .toast-icon { color: #FFA502; }
.toast-info    .toast-icon { color: var(--primary); }

.toast-message {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}
.toast-close:hover {
    background: var(--bg-color);
    color: var(--text-main);
}

@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 80px;
        left: 16px;
        right: 16px;
    }
    .toast {
        min-width: unset;
        max-width: 100%;
    }
}

/* ================= Success Overlay Screen ================= */
#success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#success-overlay.success-overlay-visible {
    opacity: 1;
}

.success-card {
    background: white;
    border-radius: 28px;
    padding: 52px 48px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 32px 64px rgba(0,0,0,0.2);
    animation: successCardIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes successCardIn {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.success-checkmark {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: #00C896;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle-draw 0.6s 0.1s ease forwards;
}

.checkmark-tick {
    stroke: #00C896;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-tick-draw 0.4s 0.6s ease forwards;
}

@keyframes checkmark-circle-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes checkmark-tick-draw {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-redirect {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 10px 18px;
    border-radius: 30px;
    display: inline-block;
}

.success-redirect strong {
    color: var(--primary);
    font-weight: 800;
}


/* ================= Keyframes ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .cart-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-summary {
        position: static;
        width: 100%;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 32, 39, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(15, 32, 39, 0.3);
        border-top: 1px solid rgba(44, 83, 100, 0.4);
        gap: 15px;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 15px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        color: rgba(255, 255, 255, 0.85);
    }

    .btn-logout {
        width: 32px;
        height: 32px;
        padding: 0;
    }

    .hero {
        height: auto;
        min-height: unset;
        border-radius: 20px;
        margin-bottom: 30px;
        padding: 44px 0;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 0 24px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .hero-content h1 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-content .btn-primary {
        width: 100%;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    main {
        padding: 24px 15px;
    }

    .auth-wrapper {
        border-radius: 20px;
    }

    .auth-form {
        padding: 35px 24px;
    }

    .auth-form h2 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: var(--radius-sm);
    }

    .product-image-container {
        height: 200px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .product-info p.price {
        font-size: 15px;
    }

    /* Force details overlay visible on touch screens */
    .product-overlay {
        position: relative;
        bottom: 0;
        background: transparent;
        padding: 0 10px 12px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .product-overlay .btn-primary {
        width: 100%;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 12px;
        box-shadow: none;
    }

    .product-card:hover .product-overlay {
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 20px;
        gap: 8px;
    }

    .navbar .logo img {
        height: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 24px 16px;
    }

    .feature-item i {
        width: 64px;
        height: 64px;
        line-height: 64px;
        font-size: 32px;
        margin-bottom: 12px;
    }

    .cart-items {
        padding: 16px;
    }

    .cart-item {
        gap: 12px;
        padding: 14px 0;
    }

    .cart-item img {
        width: 70px;
        height: 80px;
    }

    .item-details h3 {
        font-size: 14px;
    }

    .item-details .price {
        font-size: 13px;
    }

    .quantity-controls {
        padding: 2px;
    }

    .quantity-controls button {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .quantity-controls input {
        width: 28px;
        font-size: 12px;
    }

    .btn-delete {
        font-size: 15px;
        padding: 6px;
    }

    .cart-summary {
        padding: 20px 16px;
    }

    .dashboard-card {
        padding: 24px 16px;
    }
}
