:root {
    --primary-color: #1a4a9c;
    --primary-dark: #002d72;
    --accent-color: #d0021b;
    --accent-hover: #b00216;
    --bg-light: #f8fafc;
    --bg-gray: #eef2f6;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    margin-top: 0;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo-text {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.03);
}

.search-bar {
    display: flex;
    flex: 1;
    margin: 0 50px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(26, 74, 156, 0.15);
    padding-bottom: 250px;
}

.search-bar input {
    width: 100%;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

.search-bar button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #001f52;
}

.header-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-info,
.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-info:hover,
.account-info:hover {
    opacity: 0.9;
}

.contact-info i,
.account-info i {
    font-size: 22px;
    color: #e2e8f0;
}

.text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.text span:first-child {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-box {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.cart-box:hover {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}


.header-nav {
    background: white;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-nav ul {
    list-style: none;
    display: flex;
    width: 100%;
}

.header-nav ul li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    transition: var(--transition);
}

.header-nav ul li i {
    color: var(--primary-color);
}

.header-nav ul li:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.has-submenu {
    position: relative;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 20px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.has-submenu:hover .menu-item {
    background-color: #f0f7ff;
    color: var(--primary-dark);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 600px;
    box-shadow: var(--shadow-lg);
    padding: 25px;
    z-index: 100;
    gap: 30px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.has-submenu:hover .submenu {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.submenu-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.submenu-column h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-gray);
}

.submenu-column a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    padding: 8px 0;
    transition: var(--transition);
    display: block;
}

.submenu-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}


.sub-item-has-child {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-main);
}

.level-3-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    border-radius: var(--radius-md);
    z-index: 101;
    border-left: 3px solid var(--primary-color);
}

.sub-item-has-child:hover .level-3-menu {
    display: block;
}

.sub-item-has-child:hover {
    color: var(--primary-color);
}

.level-3-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.level-3-menu a:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
    padding-left: 25px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 20px;
    list-style: none;
    background-color: white;
    margin: 20px auto;
    max-width: 1400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding: 0 12px;
    color: var(--text-muted);
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 14px;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-left: 20px;
}

.category-title {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;

}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);

}

.category-tabs {
    display: flex;
    gap: 8px;
}

.tab-item {
    text-decoration: none;
    color: var(--text-main);
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    background: white;
    transition: var(--transition);
}

.tab-item:hover,
.tab-item.active {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image {
    position: relative;
    padding: 0;
    background: #fff;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-info {
    margin-top: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.rating {
    font-size: 12px;
    color: #ffb100;
    margin-bottom: 8px;
}

.sold-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 6px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
}

.discount {
    font-size: 11px;
    background: #fee2e2;
    color: var(--accent-color);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.quick-view {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.quick-view:hover {
    background: var(--primary-color);
    color: white;
}

.btn-buy {
    width: 100%;
    padding: 9px;
    background: var(--primary-dark);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--primary-color);
}

.auth-modal,
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-container {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-gray);
    margin-bottom: 25px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 74, 156, 0.1);
}

.auth-submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
}

.auth-forget {
    text-align: right;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 12px;
    cursor: pointer;
    font-weight: 500;
}

.auth-forget:hover {
    text-decoration: underline;
}

.user-logged-in {
    color: #fde047;
    font-weight: 600;
}

.btn-logout {
    font-size: 11px;
    color: #fff;
    background: var(--accent-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 8px;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--accent-hover);
}

.cart-content-container {
    background: #fff;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    border-radius: var(--radius-md);
    position: relative;
    padding: 30px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.checkout-layout {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

.checkout-left {
    flex: 1.4;
    padding-right: 20px;
}

.checkout-right {
    flex: 1;
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    height: fit-content;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    font-weight: 700;

}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 15px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
}

.cart-item-qty button {
    background: var(--bg-gray);
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--border-color);
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    border: none;
    height: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-remove-item {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    color: var(--accent-color);
}

.payment-methods {
    margin: 25px 0;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    transition: var(--transition);
}

.method-item:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.summary-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-checkout-submit {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(208, 2, 27, 0.2);
    transition: var(--transition);
}

.btn-checkout-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(208, 2, 27, 0.3);
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-bar {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        margin: 10px 0;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-left {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .category-tabs {
        display: none;
    }
}

.clor-fo {
    background-color: #1a4a9c;
    border-radius: 10px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.col-brand .logo {
    font-size: 28px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.col-brand .logo span {
    color: #f7b924;
    margin-right: 5px;
}

.col-brand p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.col-brand p strong {
    color: #f7b924;
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
    max-width: 320px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    outline: none;
    font-size: 14px;
}

.subscribe-form button {
    background-color: #081d42;
    color: white;
    border: none;
    padding: 10px 20px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.subscribe-form button:hover {
    background-color: #030d22;
}

.footer-col h3 {
    color: #f7b924;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.col-address {
    color: #ffffff
}

.col-address p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.col-address p strong {
    color: #f7b924;
}

.col-links p {
    font-size: 13px;
    margin-bottom: 8px;
}

.col-links p strong {
    color: #f7b924;
}

.col-links a.email-link {
    color: #f7b924;
    text-decoration: none;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #f7b924;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #d0d0d0;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
    }

    .footer-container {
        padding: 30px 20px 20px 20px;
        margin-top: 5px;
    }

}

.site-footer {
    background-color: #1a4a9c;
    padding-bottom: 15px;
    padding-top: 20px;
    padding-left: 15px;
}

.lab-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;                          
    max-width: 1200px;
    margin: 0 auto;
}

.lab-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.lab-title {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.lab-list {
    list-style: none;
    flex-grow: 1;     
    margin-bottom: 20px;
}

.lab-list li {
    margin-bottom: 12px;
}

.lab-list li a {
    text-decoration: none;
    color: #333333;
    font-size: 15px;
}

.lab-list li a:hover {
    color: #002d72; 
}

.btn-detail {
    display: block;
    text-align: center;
    background-color: #002d72; 
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-detail:hover {
    background-color: blue;
}

@media (max-width: 1024px) {
    .lab-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lab-container {
        grid-template-columns: 1fr;
    }
}