/* body style */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0fff4;
    color: #333;
}

/* header */
header {
    background-color: #fff;
    padding: 20px;
    border-bottom: 3px solid #68d391;
    text-align: center;
}
h1 {
    margin: 0;
    color: #2f855a;
    font-size: 28px;
}

/* user bar */
.user-bar {
    background-color: #edf7ed;
    padding: 8px 20px;
    text-align: right;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #c6f6d5;
}
.user-bar a {
    color: #2f855a;
    text-decoration: none;
    margin: 0 3px;
}
.user-bar a:hover {
    text-decoration: underline;
}

/* top menu bar */
.top_menu {
    background-color: #2f855a;
    padding: 10px 0;
}
.top_menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}
.top_menu li {
    margin: 0 20px;
}
.top_menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}
.top_menu a:hover {
    text-decoration: underline;
}

/* path like Home > Tablets */
.nav_path {
    padding: 15px 40px;
    font-size: 14px;
    color: #666;
}
.nav_path a {
    color: #2f855a;
    text-decoration: none;
}

/* main area */
main {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* product list */
.shop_area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

/* product card */
.item_box {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    width: 220px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: auto;
}
.item_box:hover {
    border-color: #68d391;
}

/* product image */
.item_box img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.item_name {
    display: block;
    margin: 5px 0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* price */
.cost {
    color: #e53e3e;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

/* buy button */
.buyBtn {
    display: block;
    width: 100%;
    margin-top: auto;
    background: #fff;
    border: 1px solid #2f855a;
    color: #2f855a;
    padding: 5px;
    cursor: pointer;
    font-weight: bold;
}
.buyBtn:hover {
    background-color: #2f855a;
    color: #fff;
}

/* cart box bottom right */
.myCart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding-top: 20px;
    margin-top: -20px;
}
.cart_btn {
    background-color: #2f855a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

/* cart list, show when hover */
.hidden_list {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    background-color: #fff;
    border: 2px solid #2f855a;
    padding: 15px;
    margin-bottom: -1px;
}
.myCart:hover .hidden_list {
    display: block;
}
.myCart:hover .cart_btn {
    background-color: #22543d;
}

/* one row in cart */
.list_row {
    border-bottom: 1px dashed #ccc;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* checkout button */
.final_btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #e53e3e;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.final_btn:hover {
    background-color: #c53030;
}

/* product detail page */
.info_container {
    display: flex;
    justify-content: center;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border: 1px solid #e2e8f0;
}
.pic_side {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text_side {
    flex: 1;
}

/* big image */
.big_pic {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    background-color: #fff;
}
.big_price {
    font-size: 2em;
    color: #e53e3e;
    font-weight: bold;
    margin: 10px 0;
}
.item_id {
    color: gray;
}

/* qty input */
.num_input {
    padding: 5px;
    width: 50px;
    margin-right: 10px;
}

/* add to cart button */
.big_add_btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2f855a;
    color: #fff;
    border: none;
    cursor: pointer;
}
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* ============ Auth Pages ============ */
.auth-wrap {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 20px;
}
.auth-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 30px;
}
.auth-box h2 {
    margin-top: 0;
    color: #2f855a;
    text-align: center;
}
.auth-msg {
    background: #c6f6d5;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #68d391;
    font-size: 14px;
}
.auth-field {
    margin-bottom: 15px;
}
.auth-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}
.auth-field input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    font-size: 14px;
}
.auth-btn {
    width: 100%;
    padding: 10px;
    background: #2f855a;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
}
.auth-btn:hover {
    background: #22543d;
}
.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.auth-link a {
    color: #2f855a;
}

/* phone screen */
@media (max-width: 768px) {
    .info_container {
        flex-direction: column;
    }
}
