* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FF3434;
    --dark-bg: #2c3e50;
    --card-bg: #2c2c2c;
    --light-bg: #f8f9fa;
    --text-light: #6c757d;
    --text-dark: #2c3e50;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'ClarityCity';
    line-height: 1.6;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    background-attachment: fixed;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
a {
    color: white;
    text-decoration: none;
}

.top-bar {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    animation: fadeIn 1s ease-in-out;
}

.top-bar i {
    margin-right: 8px;
}

span {
    white-space: nowrap;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    background-color: #252525 !important;
    padding: 15px 0;
    animation: slideDown 0.8s ease-in-out;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out 0.2s;
    animation-fill-mode: backwards;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--primary-red);
}

.navbar-nav .nav-link {
    color: white !important;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    animation: slideUp 0.8s ease-in-out;
    animation-fill-mode: backwards;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

.navbar-nav .nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar-nav .nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.navbar-nav .nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.navbar-nav .nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.navbar-nav .nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

.btn-login {
    background-color: var(--primary-red);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    width: 180px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.btn-login:hover {
    background-color: #c0392b;
}

.btn-search,
.btn-cart {
    width: 50px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 50px;
    font-size: 14px;
    min-width: unset;
    animation: pulse 2s infinite;
}

.collapse {
    /* justify-content: space-around; */
    display: flex;
    justify-content: space-between;
}

.navbar-nav {
    margin: auto;
}

.flex-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   AUTHENTICATION MODAL
   ========================================================================== */
.auth-body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: scaleUp 0.8s ease-in-out;
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
}

.auth-close-btn:hover {
    color: #000;
}

.auth-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    animation: fadeIn 0.8s ease-in-out 0.2s;
    animation-fill-mode: backwards;
}

.auth-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 14px;
    animation: fadeIn 0.8s ease-in-out 0.2s;
    animation-fill-mode: backwards;
}

.auth-form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    animation: slideRight 0.8s ease-in-out;
    animation-fill-mode: backwards;
}

.auth-form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-form-control:nth-child(1) {
    animation-delay: 0.3s;
}

.auth-form-control:nth-child(2) {
    animation-delay: 0.4s;
}

.auth-forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.auth-forgot-password a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.auth-forgot-password a:hover {
    text-decoration: underline;
}

.auth-btn-login {
    background-color: #ff4757;
    border-color: #ff4757;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

.auth-btn-login:hover {
    background-color: #ff3742;
    border-color: #ff3742;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-size: 14px;
}

.auth-btn-social {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
    border: 1px solid #ced4da;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: bounce 1.5s infinite;
}

.auth-btn-social:hover {
    background-color: #f8f9fa;
    color: #333;
}

.auth-google-icon {
    width: 18px;
    height: 18px;
}

.auth-facebook-icon {
    color: #1877f2;
    font-size: 18px;
}

/* Modal Login Styles */
.f-g-modals {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.facebbok-modals,
.facebook-modals {
    width: 437px;
    height: 50px;
    border: 2px solid black;
}

.f-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: none;
}

.modals-btn-login {
    width: 437px;
    height: 50px;
    background-color: var(--primary-red);
    margin: auto;
}

.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.cart-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.address-section>input {
    border-radius: 5px;
    border: none;
    background-color: #f8f9fa;
}

.address-title {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.payment-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.payment-title {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}


.payment-option label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.right-section {
    display: flex;
    flex-direction: column;
}

.products-title {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 16px;
}

.product-list {
    flex-grow: 1;
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-details {
    flex-grow: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.product-info {
    font-size: 12px;
    color: #666;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.quantity {
    font-size: 14px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.total-section {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.payment-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.payment-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-container {
        margin: 10px;
    }

    .flex-3 {
        gap: 10px !important;
        flex-direction: column;
        align-items: center;
        /* align-content: space-between; */
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .navbar-nav {
        font-size: 10px;
    }
}