/* Base font size */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Base layout and focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

main.flex-fill {
    flex: 1;
}

.form-floating > .form-control::placeholder,
.form-floating > .form-control-plaintext::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}

/* Product image styling */
.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Sidebar layout */
.sidebar-left {
    position: fixed;
    top: 114px; /* начинается после header */
    left: 0;
    width: 280px;
    height: calc(100vh - 114px); /* оставшееся место на экране */
    background-color: #fff;
    border-right: 1px solid #ddd;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease forwards;
}

.sidebar-right {
    position: fixed;
    top: 114px;
    left: 280px;
    width: 280px;
    height: calc(100vh - 114px);
    background-color: #fff;
    border-right: 1px solid #ddd;
    z-index: 1051;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease forwards;
}



/* List hover */
.list-group-item a:hover {
    background-color: #f8f9fa;
    font-weight: 500;
    border-radius: 5px;
}

/* Category */
.category-panel {
    padding: 10px;
}

.category-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.category-item:hover {
    background-color: #f0ad4e;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-left {
        position: fixed;
        top: auto;
        bottom: 60px;        /* выше mobile footer */
        left: 0;
        right: 0;
        width: 100%;
        height: 75vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,.15);
        overflow-y: auto;
        z-index: 1050;
        animation: slideUp 0.3s ease forwards;
    }

    .sidebar-right {
        position: fixed;
        top: auto;
        bottom: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: 75vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,.15);
        overflow-y: auto;
        z-index: 1051;
        animation: slideUp 0.3s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Scroll lock */
body.no-scroll {
    overflow: hidden;
}

/* Back button */
.back-btn {
    padding: 6px 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.back-btn:hover {
    background-color: #f0ad4e;
    color: white;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 🌙 Dark mode support */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode .sidebar-left,
body.dark-mode .sidebar-right {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .list-group-item a:hover,
body.dark-mode .back-btn:hover,
body.dark-mode .category-item:hover {
    background-color: #f0ad4e;
    color: #000;
}

body.dark-mode .back-btn {
    background-color: #2c2c2c;
    border-color: #444;
}

/* RTL support */
body[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] .sidebar-left {
    left: auto;
    right: 0;
    border-left: 1px solid #ddd;
    border-right: none;
}

body[dir="rtl"] .sidebar-right {
    left: auto;
    right: 320px;
    border-left: 1px solid #ddd;
    border-right: none;
}

/* added */
.no-scroll {
    overflow: hidden;
}

/* Design WilBre*/
.navbar {
    background: linear-gradient(90deg, #00ad45, #008748) !important;
    color: white !important;
}

    .navbar .nav-link,
    .navbar .navbar-brand {
        color: white !important;
        font-weight: bold;
        font-size: 16px;
    }

    .navbar .navbar-brand {
        font-size: 24px;
    }

    .navbar .btn-warning {
        background-color: white !important;
        color: #d633d6 !important;
        border: none;
    }

        .navbar .btn-warning:hover {
            background-color: #f0e6f6 !important;
            color: #8e2de2 !important;
        }

form.d-flex input.form-control {
    background-color: white;
    border-radius: 20px;
    padding-left: 15px;
    font-size: 16px;
    border: none;
}

form.d-flex button.btn {
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 16px;
}



/* Центровка иконок и текста в nav */
.navbar-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Убираем стандартный отступ между иконками на мобилках */
/* Better category items for mobile */
@media (max-width: 768px) {
    .category-panel {
        padding: 0;
    }

    /* Drag handle at top */
    .category-panel::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 12px auto 8px;
    }

    .category-item {
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: #222;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .category-item:hover,
    .category-item:active {
        background: #fff8e1;
        color: #b35c00;
    }

    .category-item::after {
        content: '›';
        font-size: 1.2rem;
        color: #aaa;
    }

    .back-btn {
        margin: 8px 16px;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        background: #f5f5f5;
        border: none;
        width: calc(100% - 32px);
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .back-btn::before {
        content: '‹';
        font-size: 1.2rem;
    }

    /* Section title inside sidebar */
    #categoryLevel2 h6,
    #categoryLevel1 h6 {
        padding: 12px 20px 4px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #999;
        margin: 0;
    }
}

/* 17.06.2025 */
footer a {
    width: 20%;
}

footer small {
    font-size: 11px;
}


.quantity-control {
    font-size: 18px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 10px;
    background-color: #f1f1f1;
    color: #333;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #ddd;
}

.quantity-number {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.nav-item .badge {
    font-size: 0.75rem;
    padding: 4px 6px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    background-color: transparent; /* Ensure no background */
    border-radius: 50%; /* Make it round */
    object-fit: cover; /* Keeps the aspect ratio nicely */
}


.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.slider img {
    width: 80%;
    height: auto;
    border-radius: 20px;
    transition: opacity 1s ease-in-out;
}

/* VerifyPhone */
.code-box {
    width: 60px;
    height: 60px;
    font-size: 28px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.code-inputs {
    justify-content: center;
}

input.code-box:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, .5);
}
/* VerifyPhone */
.carousel-item img {
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    max-height: 400px
}
.search-form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form input {
    width: 80%;
}

.search-form button {
    width: 19%;
}

img {
    border-radius: 5px;
}
button.btn-danger {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
}

 .product-details-container {
     display: flex;
     gap: 30px;
     margin-top: 20px;
     flex-wrap: wrap;
 }

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: 0.2s;
}

.thumbnail.active {
    border-color: #007bff;
}

.main-image img {
    max-width: 250px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.main-image img:hover {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 768px) {
    .product-details-container {
        flex-direction: column;
        align-items: center;
    }

    .thumbnails {
        flex-direction: row;
    }
}

.image-slider {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-slide-img.active {
    opacity: 1;
    z-index: 1;
}

.profile-label {
    color: #6c757d; /* Bootstrap text-muted */
    font-weight: 500;
}

@media (max-width: 576px) {
    .profile-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/*Start Product list page code*/
.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/*End*/

/* Start Card title*/
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; /* фикс высоты */
}
/*End card Titile*/

/*Start style Cart/Index*/
 .cart-wrapper {
     max-width: 860px;
     margin: 2rem auto;
     padding: 0 1rem;
 }

.cart-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Desktop table ── */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.cart-table thead tr {
    background: #f5f5f5;
}

.cart-table th {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #222;
    font-size: 0.95rem;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-table tfoot td {
    padding: 0.9rem 1rem;
    background: #f9f9f9;
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid #e8e8e8;
    color: #222;
}

/* ── Quantity control ── */
.qty-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-group form {
    margin: 0;
    padding: 0;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-num {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Action buttons ── */
.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-checkout {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background .2s;
}

.btn-checkout:hover {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
}

.btn-continue {
    background: #fff;
    color: #1976d2;
    border: 1.5px solid #1976d2;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background .2s, color .2s;
}

.btn-continue:hover {
    background: #e3f2fd;
    text-decoration: none;
}

/* ── Mobile card layout ── */
.cart-mobile {
    display: none;
}

.cart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.cart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cart-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.cart-card-total {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    white-space: nowrap;
}

.cart-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-card-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-summary-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
}

.cart-summary-label {
    font-weight: 600;
    font-size: 1rem;
    color: #555;
}

.cart-summary-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
}

@media (max-width: 600px) {
    .cart-table-wrapper {
        display: none;
    }

    .cart-mobile {
        display: block;
    }

    .cart-title {
        font-size: 1.3rem;
    }

    .cart-actions {
        flex-direction: column;
    }

    .btn-checkout,
    .btn-continue {
        justify-content: center;
        width: 100%;
    }
}

/*End style Cart/Index*/
    
/*Start style Profile*/
 .profile-header {
     background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
     padding: 30px 0;
     text-align: center;
     color: white;
     position: relative;
 }

.profile-avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.profile-avatar-icon {
    width: 80px;
    height: 80px;
    background: #FFA500;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.profile-logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.profile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.profile-phone {
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #0066ff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.seller-banner {
    background: linear-gradient(135deg, #0066ff 0%, #ff1493 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    text-align: center;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.seller-banner::before {
    content: '🏆';
    position: absolute;
    font-size: 40px;
    left: 15px;
    top: 15px;
    opacity: 0.3;
}

.seller-banner::after {
    content: '✨';
    position: absolute;
    font-size: 30px;
    right: 20px;
    bottom: 15px;
    opacity: 0.3;
}

.seller-banner-text {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-radius: 10px;
    margin-bottom: 10px;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #0066ff;
}

.menu-item-icon {
    width: 45px;
    height: 45px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: #0066ff;
}

.menu-item-text {
    flex: 1;
}

.menu-item-arrow {
    color: #ccc;
    font-size: 18px;
}

.user-info-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}
 .profile-header {
     padding: 20px 0;
     border-radius: 0 0 20px 20px;
 }

.profile-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 15px;
}

.stat-card {
    padding: 15px;
}

.seller-banner {
    margin: 20px 15px;
}

body {
    padding-bottom: 80px;
}
/*End style Profile*/


/*Start style Checkout*/
.checkout-wrapper {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Form card ── */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Fields ── */
.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.field-group input {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    color: #222;
    outline: none;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}

.field-group input:focus {
    border-color: #2e7d32;
}

.phone-row {
    display: flex;
    gap: 0;
}

.phone-prefix {
    background: #f0f0f0;
    border: 1.5px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.phone-row input {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
}

.text-danger {
    font-size: 0.78rem;
    color: #c62828;
    margin-top: 2px;
}

/* ── Order table (desktop) ── */
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
    padding: 0.6rem 0.75rem;
    border-bottom: 1.5px solid #e8e8e8;
    text-align: left;
}

.order-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
    color: #222;
}

.order-table tbody tr:last-child td {
    border-bottom: none;
}

.order-table tfoot td {
    padding: 0.75rem;
    background: #f9f9f9;
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 2px solid #e8e8e8;
}

/* ── Order cards (mobile) ── */
.order-mobile {
    display: none;
}

.order-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-card:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111;
}

.order-item-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

.order-item-sum {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    white-space: nowrap;
    margin-left: 1rem;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0 0;
    margin-top: 0.25rem;
    border-top: 2px solid #e8e8e8;
}

.order-total-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

.order-total-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

/* ── Info box ── */
.info-box {
    background: #e8f4fd;
    border: 1px solid #b3d9f5;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.info-box-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1565c0;
    margin-bottom: 0.75rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.info-list li {
    font-size: 0.88rem;
    color: #333;
    display: flex;
    gap: 0.4rem;
}

.info-list ul {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-list ul li::before {
    content: "◦ ";
    color: #888;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.agree-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
    cursor: pointer;
}

.agree-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* ── Action buttons ── */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-back {
    background: #fff;
    color: #555;
    border: 1.5px solid #ccc;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background .2s;
}

.btn-back:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.btn-place {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background .2s, opacity .2s;
}

.btn-place:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-place:not(:disabled):hover {
    background: #1b5e20;
}

/* ── Mobile breakpoint ── */
@media (max-width: 600px) {
    .fields-row {
        grid-template-columns: 1fr;
    }

    .order-table-wrapper {
        display: none;
    }

    .order-mobile {
        display: block;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .btn-back,
    .btn-place {
        width: 100%;
        justify-content: center;
    }

    .btn-back {
        order: 2;
    }

    .btn-place {
        order: 1;
    }

    .checkout-title {
        font-size: 1.3rem;
    }
}
/*End style Checkout*/

/*Start style ProductList*/
     /* ── Page layout ── */
 .shop-layout {
     display: grid;
     grid-template-columns: 220px 1fr;
     gap: 1.5rem;
     max-width: 1400px;
     margin: 1.5rem auto;
     padding: 0 1rem;
     align-items: start;
 }

/* ── Sidebar ── */
.sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    padding: 0 1rem 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    cursor: pointer;
}

.sidebar-link:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
}

.sidebar-link.active {
    background: #fff8e1;
    border-left-color: #f5a623;
    color: #b35c00;
    font-weight: 600;
}

.sidebar-link .arrow {
    font-size: 0.7rem;
    color: #aaa;
    transition: transform .2s;
}

.sidebar-link.open .arrow {
    transform: rotate(90deg);
}

/* Sub-categories */
.sub-menu {
    display: none;
    padding: 0.25rem 0;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu.open {
    display: block;
}

.sub-link {
    display: block;
    padding: 0.45rem 1rem 0.45rem 2rem;
    font-size: 0.88rem;
    color: #555;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.sub-link:hover {
    background: #f0f0f0;
    color: #111;
    text-decoration: none;
}

.sub-link.active {
    color: #b35c00;
    font-weight: 600;
    background: #fff8e1;
}

/* ── Mobile category toggle ── */
.mobile-cat-toggle {
    display: none;
    width: 100%;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-bottom: 1rem;
    text-align: left;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar {
    display: none;
}

.mobile-sidebar.open {
    display: block;
}

/* ── Carousel ── */
.carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.carousel-wrapper .carousel-item img {
    border-radius: 12px;
    max-height: 320px;
    object-fit: cover;
}

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.product-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s;
}

.product-slide-img.active {
    opacity: 1;
}

.card-img-top.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #fff;
    overflow-x: auto;
}

.thumbnail-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail-img:hover {
    border-color: #2e7d32;
}

.product-card-info {
    padding: 0.65rem 0.75rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-info .product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.product-card-info .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
    margin-top: auto;
    padding: 0.4rem 0 0.65rem;
}

.product-footer {
    padding: 0 0.75rem 0.75rem;
}

.btn-cart {
    display: block;
    width: 100%;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}

.btn-cart:hover {
    background: #1b5e20;
}

/* ── Pagination ── */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.page-btn:hover {
    background: #f0f0f0;
    text-decoration: none;
    color: #111;
}

.page-btn.active {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sidebar {
        display: none;
    }

    .mobile-cat-toggle {
        display: flex;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/*End style Product List*/

/*Start Style Login*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --green-dark: #1a6b32;
    --green-main: #28a745;
    --green-light: #e8f5e9;
    --green-border: #c8e6c9;
    --gold: #f5a623;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 20px 60px rgba(0,0,0,0.12);
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 50%, #e0f2e0 100%);
    min-height: 100vh;
}

.login-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border: 1px solid var(--green-border);
}

.login-card-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.login-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.login-logo span {
    color: var(--gold);
}

.login-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.login-card-body {
    padding: 2rem;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-danger {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #842029;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    display: block;
}

.phone-input-group {
    display: flex;
    border: 2px solid var(--green-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--green-light);
}

.phone-input-group:focus-within {
    border-color: var(--green-main);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.12);
    background: var(--white);
}

.phone-prefix {
    background: transparent;
    border: none;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-dark);
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
    border-right: 2px solid var(--green-border);
}

.phone-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-family: 'Nunito', sans-serif !important;
    color: var(--text-dark) !important;
    flex: 1;
    box-shadow: none !important;
    letter-spacing: 0.5px;
}

.phone-input:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.remember-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.remember-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--green-border);
    cursor: pointer;
    accent-color: var(--green-main);
}

.remember-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}

.btn-login {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
    letter-spacing: 0.3px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.45);
    opacity: 0.95;
}

.btn-login:active {
    transform: translateY(0);
}

.login-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.login-links a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.login-links a:hover {
    color: var(--green-main);
    text-decoration: underline;
}

.login-links .separator {
    margin: 0 0.4rem;
    color: var(--green-border);
}

.login-card-footer {
    background: var(--green-light);
    border-top: 1px solid var(--green-border);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.new-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--gold), #f7b733);
    color: var(--white);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .login-card-body {
        padding: 1.5rem;
    }
    .login-card-header {
        padding: 1.5rem;
    }
}
/*End style*/

/*Start style ForgotLogin*/
 body {
     background-color: #f0f7f0;
 }

.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #fff;
}

.auth-card-header {
    background: #1a7a3c;
    padding: 28px 32px 24px;
    text-align: center;
}

.auth-card-header .brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

.auth-card-header .brand span {
    color: #f5a623;
}

.auth-card-header .tagline {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    margin-top: 4px;
    font-family: 'Segoe UI', sans-serif;
}

.auth-card-body {
    padding: 32px 32px 28px;
}

.auth-card-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.auth-card-body .subtitle {
    text-align: center;
    color: #888;
    font-size: 0.84rem;
    margin-bottom: 24px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.5;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper {
    display: flex;
    border: 1.5px solid #d4e8da;
    border-radius: 10px;
    overflow: hidden;
    background: #f4fbf6;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #1a7a3c;
    background: #fff;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a7a3c;
    background: transparent;
    border-right: 1.5px solid #d4e8da;
    white-space: nowrap;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 0.95rem;
    color: #1a1a1a;
    outline: none;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper input::placeholder {
    color: #aac5b5;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #1a7a3c, #23a050);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 22px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(26,122,60,0.25);
}

.btn-login:hover {
    background: linear-gradient(135deg, #165f30, #1a8a42);
    box-shadow: 0 6px 18px rgba(26,122,60,0.35);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.87rem;
    font-family: 'Segoe UI', sans-serif;
    color: #777;
    flex-wrap: wrap;
}

.auth-links a {
    color: #1a7a3c;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links .divider {
    color: #ccc;
}

.auth-card-footer {
    text-align: center;
    padding: 0 32px 24px;
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
    color: #888;
}

.auth-card-footer a {
    color: #f5a623;
    font-weight: 700;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.alert-danger {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    color: #c0392b;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-family: 'Segoe UI', sans-serif;
}
/*End Style ForgotLogin*/

/*Start Register*/
 body {
     background-color: #f0f7f0;
 }

.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #fff;
}

.auth-card-header {
    background: #1a7a3c;
    padding: 28px 32px 24px;
    text-align: center;
}

.auth-card-header .brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

.auth-card-header .brand span {
    color: #f5a623;
}

.auth-card-header .tagline {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    margin-top: 4px;
    font-family: 'Segoe UI', sans-serif;
}

.auth-card-body {
    padding: 32px 32px 28px;
}

.auth-card-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper {
    display: flex;
    border: 1.5px solid #d4e8da;
    border-radius: 10px;
    overflow: hidden;
    background: #f4fbf6;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #1a7a3c;
    background: #fff;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a7a3c;
    background: transparent;
    border-right: 1.5px solid #d4e8da;
    white-space: nowrap;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 0.95rem;
    color: #1a1a1a;
    outline: none;
    font-family: 'Segoe UI', sans-serif;
}

.phone-input-wrapper input::placeholder {
    color: #aac5b5;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #1a7a3c, #23a050);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 22px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(26,122,60,0.25);
}

.btn-login:hover {
    background: linear-gradient(135deg, #165f30, #1a8a42);
    box-shadow: 0 6px 18px rgba(26,122,60,0.35);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.87rem;
    font-family: 'Segoe UI', sans-serif;
    color: #777;
}

.auth-links a {
    color: #1a7a3c;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-card-footer {
    text-align: center;
    padding: 0 32px 24px;
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
    color: #888;
}

.auth-card-footer a {
    color: #f5a623;
    font-weight: 700;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.alert-danger {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    color: #c0392b;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-family: 'Segoe UI', sans-serif;
}
/*Endt Register*/

/*Start Cart Index*/
 .cart-page {
     min-height: 60vh;
     display: flex;
     align-items: flex-start;
     justify-content: center;
     padding: 2.5rem 1rem;
 }

.cart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    overflow: hidden;
    width: 100%;
    max-width: 820px;
}

.cart-card-header {
    background: #2d8a4e;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.cart-card-header .brand {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    font-family: 'Georgia', serif;
}

.cart-card-header .brand span {
    color: #f5c518;
}

.cart-card-header .subtitle {
    color: rgba(255,255,255,0.80);
    font-size: 0.92rem;
    margin-top: 2px;
}

.cart-card-body {
    padding: 2rem 2rem 2.5rem;
}

.cart-card-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-empty-box {
    background: #f0f7f2;
    border: 1px solid #c6e2ce;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    color: #2d6a3f;
}

.cart-empty-box h5 {
    font-weight: 700;
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.cart-empty-box p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #3a7d52;
}

.btn-primary-green {
    display: inline-block;
    background: #2d8a4e;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.4rem;
    text-decoration: none;
    transition: background 0.18s;
}

.btn-primary-green:hover {
    background: #226b3c;
    color: #fff;
}

/* Table */
.cart-table-wrap {
    border: 1px solid #e0ece4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cart-table thead tr {
    background: #f0f7f2;
}

.cart-table thead th {
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #2d6a3f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #c6e2ce;
}

.cart-table tbody tr {
    border-bottom: 1px solid #eef5f1;
    transition: background 0.12s;
}

.cart-table tbody tr:hover {
    background: #f7fdf9;
}

.cart-table tbody tr:last-child {
    border-bottom: none;
}

.cart-table td {
    padding: 0.85rem 1rem;
    color: #222;
    vertical-align: middle;
}

.cart-table tfoot tr {
    background: #f0f7f2;
}

.cart-table tfoot td {
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #2d6a3f;
    font-size: 1rem;
    border-top: 2px solid #c6e2ce;
}

/* Qty controls */
.qty-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #c6e2ce;
    background: #fff;
    color: #2d8a4e;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s, color 0.14s;
    line-height: 1;
    padding: 0;
}

.qty-btn:hover {
    background: #2d8a4e;
    color: #fff;
    border-color: #2d8a4e;
}

.qty-num {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.qty-group form {
    margin: 0;
    padding: 0;
}

/* Actions */
.cart-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-checkout {
    flex: 1;
    min-width: 180px;
    background: #2d8a4e;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s;
    display: block;
}

.btn-checkout:hover {
    background: #226b3c;
    color: #fff;
}

.btn-continue {
    flex: 1;
    min-width: 180px;
    background: #fff;
    color: #2d8a4e;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #2d8a4e;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    display: block;
}

.btn-continue:hover {
    background: #f0f7f2;
    color: #226b3c;
}

/* Mobile cards */
.cart-mobile {
    display: none;
}

.cart-mobile-card {
    border: 1px solid #e0ece4;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.cart-mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-mobile-card-name {
    font-weight: 700;
    font-size: 0.97rem;
    color: #1a1a1a;
}

.cart-mobile-card-subtotal {
    font-weight: 700;
    color: #2d8a4e;
    font-size: 0.97rem;
}

.cart-mobile-card-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f7f2;
    border: 1px solid #c6e2ce;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #2d6a3f;
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .cart-table-wrap {
        display: none;
    }

    .cart-mobile {
        display: block;
    }

    .cart-card-body {
        padding: 1.25rem 1rem 1.5rem;
    }

    .cart-card-header {
        padding: 1.5rem 1rem 1rem;
    }

    .cart-card-header .brand {
        font-size: 1.6rem;
    }
}
/*End cart index*/

/*Start Product/Detiles */
 .details-page {
     display: flex;
     justify-content: center;
     padding: 2.5rem 1rem;
 }

.details-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

.details-card-header {
    background: #2d8a4e;
    padding: 1.75rem 2rem 1.5rem;
}

.details-card-header .brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    font-family: 'Georgia', serif;
    margin-bottom: 2px;
}

.details-card-header .brand span {
    color: #f5c518;
}

.details-card-header h1 {
    color: rgba(255,255,255,0.95);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.4rem 0 0;
}

.details-card-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Gallery */
.product-gallery {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0ece4;
    cursor: pointer;
    transition: border-color 0.15s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #2d8a4e;
}

.main-image-wrap {
    flex: 1;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fdf9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 320px;
}

/* Info */
.product-info {
    flex: 1;
    min-width: 220px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.info-table tr {
    border-bottom: 1px solid #eef5f1;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table dt-cell {
    display: table-cell;
    width: 35%;
    padding: 0.7rem 0.5rem 0.7rem 0;
    font-weight: 700;
    color: #2d6a3f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: top;
}

.info-table dd-cell {
    display: table-cell;
    padding: 0.7rem 0 0.7rem 0.5rem;
    color: #222;
    line-height: 1.55;
    vertical-align: top;
}

.price-badge {
    display: inline-block;
    background: #f0f7f2;
    color: #1a5c30;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #c6e2ce;
}

.stock-badge {
    display: inline-block;
    background: #f0f7f2;
    color: #2d6a3f;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #c6e2ce;
}

.category-badge {
    display: inline-block;
    background: #eaf4ff;
    color: #155a99;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #b5d4f4;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #2d8a4e;
    color: #fff;
    font-size: 0.97rem;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: background 0.18s;
    margin-top: 0.5rem;
}

.btn-back:hover {
    background: #226b3c;
    color: #fff;
}

.no-image {
    padding: 3rem;
    text-align: center;
    color: #888;
    background: #f9fdf9;
    border-radius: 10px;
    border: 1px dashed #c6e2ce;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .details-card-body {
        padding: 1.25rem 1rem 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
    }

    .product-gallery {
        max-width: 100%;
    }

    .details-card-header {
        padding: 1.25rem 1rem;
    }

    .details-card-header h1 {
        font-size: 1.1rem;
    }

    .thumbnail {
        width: 52px;
        height: 52px;
    }
}
/*End Product Details*/

/*Start VerifyPhone*/
.verify-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.verify-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    padding: 35px 28px;
    box-shadow:
            0 20px 50px rgba(0,0,0,.15);
    text-align: center;
}

.brand-logo {
    width: 85px;
    height: 85px;
    margin: auto;
    border-radius: 50%;
    background: #0ea44b;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 34px;
    margin-bottom: 20px;
}

h2 {
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 12px;
}

.description {
    color: #667085;
    margin-bottom: 12px;
}

.phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #0ea44b;
}

.change-number {
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    color: #2563eb;
    font-weight: 600;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 35px 0;
}

.otp-input {
    width: 52px;
    height: 60px;
    border-radius: 16px;
    border: 2px solid #d0d5dd;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    transition: .3s;
    outline: none;
}

.otp-input:focus {
    border-color: #0ea44b;
    box-shadow: 0 0 0 4px rgba(14,164,75,.15);
}

.timer-section {
    margin-bottom: 24px;
    color: #667085;
    font-size: 15px;
}

.timer {
    color: #0ea44b;
    font-weight: 700;
    margin-left: 5px;
}

.verify-btn {
    width: 100%;
    border: none;
    background: #0ea44b;
    color: white;
    height: 58px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    transition: .3s;
}

.verify-btn:hover {
    background: #0b8c3f;
    transform: translateY(-2px);
}

@media(max-width:480px) {

    .verify-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 22px;
    }

    h2 {
        font-size: 26px;
    }
}
/*End Verify*/