/* header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    text-decoration: none;
}

/* cart */
.cartWrapper {
    position: relative;
}

.cartIcon {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.cartIcon:hover {
    background-color: #f0f0f0;
}

.cartInfo {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    padding: 15px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cartWrapper:hover .cartInfo {
    opacity: 1;
    visibility: visible;
}

.cartInfo h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.cartInfoHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cartTotalCost {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}

.cartCheckoutBtn {
    width: 100%;
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.cartCheckoutBtn:hover {
    background-color: #1a5276;
}

.cartItemsList {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 5px;
}

.cartItemsList::-webkit-scrollbar {
    width: 6px;
}

.cartItemsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cartItemsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.cartItemsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cartItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cartItem:hover {
    background-color: #f0f7ff;
    border-color: #2980b9;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.1);
}

.cartItemInfo {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.itemName {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
}

.itemQty {
    color: #666;
    font-size: 12px;
    margin-bottom: 6px;
}

.itemPrice {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

.cartItemQty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qtyBtn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
}

.qtyBtn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.qtyBtn:active {
    transform: scale(0.95);
}

.qtyInput {
    width: 45px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    padding: 4px;
    transition: border-color 0.2s ease;
}

.qtyInput:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 4px rgba(41, 128, 185, 0.3);
}

.qtyInput::-webkit-outer-spin-button,
.qtyInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
.qtyInput[type=number] {
    -moz-appearance: textfield;
}*/


/* table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.text-center {
    text-align: center;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #fcfcfc;
}

.text-center {
    text-align: center;
}

/* main container */
.container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* nav */
.navRoute {
    max-width: 1200px;
    margin: 20px 0;
    padding: 0;
    font-size: 14px;
    color: #666;
}

.navRoute a {
    color: #2980b9;
    text-decoration: none;
}

.navRoute a:hover {
    text-decoration: underline;
}

/* sideBar */
.categorySidebar {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
}

.categorySidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.categorySidebar li {
    margin-bottom: 0;
}

.categorySidebar a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
}

.categorySidebar a:hover {
    color: #fff;
    background-color: #71a4c6;
}

/* product */
.productList {
    flex: 1;
}

.productGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.productItem {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    width: calc(20% - 60px);
    text-align: center;
    transition: transform 0.3s ease;
}

.productItem:hover {
    transform: translateY(-5px);
}

.productThumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
}

.productLink {
    text-decoration: none;
    color: #333;
}

.productName {
    font-size: 18px;
    margin-bottom: 10px;
    cursor: pointer;
}

.productPrice {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.addToCartBtn {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.addToCartBtn:hover {
    background-color: #1a5276;
}

/* footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    margin-top: 30px;
}

.footerContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* general button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 2px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
    height: 32px; /* Fixed height for consistency */
}

.btn-primary {
    color: #fff;
    background-color: #2980b9;
    border-color: #2471a3;
}

.btn-primary:hover {
    background-color: #1f618d;
}

.btn-danger {
    color: #fff;
    background-color: #e74c3c;
    border-color: #c0392b;
}

.btn-danger:hover {
    background-color: #cb4335;
}

.btn-secondary {
    color: #fff;
    background-color: #95a5a6;
    border-color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-info {
    color: #fff;
    background-color: #3498db;
    border-color: #2980b9;
}

.btn-info:hover {
    background-color: #2980b9;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
    height: 28px; /* Fixed height for small buttons */
}

form.inline-form {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

