/* General Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Amazon Ember", Arial, sans-serif;
}

body {
    background-color: #eaeded;
    color: #0f1111;
}

/* Header Styling */
.header {
    background-color: #131921;
    color: white;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
}

.header-logo img {
    height: 38px;
    object-fit: contain;
    margin-top: 4px;
}

.header-deliver-to {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.header-deliver-to:hover, .nav-item:hover {
    border-color: #ffffff;
}

.header-deliver-to i {
    font-size: 16px;
    margin-top: 8px;
}

.line-1 {
    font-size: 12px;
    color: #ccc;
    display: block;
}

.line-2 {
    font-size: 14px;
    font-weight: bold;
    display: block;
}

/* Search Bar */
.header-search {
    display: flex;
    flex: 1;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.search-category {
    background-color: #f3f3f3;
    border: none;
    padding: 0 8px;
    font-size: 12px;
    border-right: 1px solid #cdcdcd;
    cursor: pointer;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 0 10px;
    font-size: 15px;
    outline: none;
}

.header-search button {
    width: 45px;
    background-color: #febd69;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #111;
}

.header-search button:hover {
    background-color: #f3a847;
}

/* Header Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.cart-item {
    display: flex;
    align-items: flex-end;
    position: relative;
}

.cart-item i {
    font-size: 26px;
}

.cart-count {
    position: absolute;
    top: -2px;
    left: 17px;
    color: #f08804;
    font-weight: bold;
    font-size: 14px;
}

.cart-text {
    font-size: 14px;
    font-weight: bold;
    margin-left: 4px;
}

/* Sub Nav */
.header-menu {
    background-color: #232f3e;
    padding: 4px 16px;
}

.header-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.header-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    display: block;
}

.header-menu ul li a:hover {
    outline: 1px solid white;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(234,237,237,1)), #232f3e;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

/* Page Layout Grid */
.main-container {
    display: flex;
    max-width: 1500px;
    margin: -40px auto 20px auto;
    padding: 0 20px;
    gap: 20px;
}

.sidebar {
    width: 220px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    font-size: 14px;
    margin: 15px 0 6px 0;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.filter-list, .rating-filter {
    list-style: none;
}

.filter-list li a, .rating-filter li a {
    text-decoration: none;
    color: #0f1111;
    font-size: 13px;
    line-height: 20px;
}

.filter-list li a:hover {
    color: #c45500;
}

.rating-filter i {
    color: #ffa41c;
}

/* Product Grid */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e67a00;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 2px;
}

.badge.deal {
    background-color: #cc0c39;
}

.product-img-box {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 4px;
}

.product-placeholder-icon {
    font-size: 60px;
    color: #888;
}

.product-title a {
    color: #0f1111;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #c45500;
}

.product-rating {
    margin: 6px 0;
    font-size: 12px;
}

.stars {
    color: #ffa41c;
    letter-spacing: 1px;
}

.count {
    color: #007185;
    margin-left: 4px;
}

.product-price {
    margin-bottom: 6px;
}

.currency {
    font-size: 11px;
    vertical-align: super;
}

.amount {
    font-size: 20px;
    font-weight: bold;
}

.cents {
    font-size: 11px;
    vertical-align: super;
}

.prime-shipping {
    font-size: 12px;
    color: #565959;
    margin-bottom: 12px;
}

.prime-shipping i {
    color: #e67a00;
}

.add-to-cart-btn {
    margin-top: auto;
    background-color: #ffd814;
    border: 1px solid #fcd200;
    padding: 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

.add-to-cart-btn:hover {
    background-color: #f7ca00;
}

/* Footer Styling */
.footer {
    background-color: #232f3e;
    color: white;
    margin-top: 40px;
}

.back-to-top {
    display: block;
    text-align: center;
    background-color: #37475a;
    color: white;
    text-decoration: none;
    padding: 12px;
    font-size: 13px;
}

.back-to-top:hover {
    background-color: #485769;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-column h5 {
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
    line-height: 24px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #131921;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #ccc;
}

/* Sign-In & Sign-Up Auth Pages */
.auth-body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.auth-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.auth-box {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.auth-box h1 {
    font-weight: 400;
    font-size: 28px;
    margin-bottom: 15px;
}

.auth-box label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

.auth-box input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #a6a6a6;
    border-radius: 3px;
    margin-bottom: 14px;
    outline: none;
}

.auth-box input:focus {
    border-color: #e77600;
    box-shadow: 0 0 3px 1px rgba(228,121,17,0.5);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    padding: 7px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.auth-btn:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

.auth-terms {
    font-size: 11px;
    color: #555;
    margin-top: 15px;
    line-height: 15px;
}

.auth-terms a, .auth-signin-link a {
    color: #0066c0;
    text-decoration: none;
}

.auth-terms a:hover, .auth-signin-link a:hover {
    text-decoration: underline;
    color: #c45500;
}

.auth-divider {
    width: 350px;
    text-align: center;
    border-bottom: 1px solid #e7e7e7;
    line-height: 0.1em;
    margin: 10px 0 20px;
}

.auth-divider span {
    background: #fff;
    padding: 0 8px;
    font-size: 12px;
    color: #767676;
}

.auth-create-btn {
    width: 350px;
    text-align: center;
    text-decoration: none;
    color: #111;
    background: linear-gradient(to bottom, #f7f8fa, #e7e9ec);
    border: 1px solid #a2a6ac;
    padding: 7px;
    border-radius: 3px;
    font-size: 13px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}

.auth-create-btn:hover {
    background: linear-gradient(to bottom, #e7e9ec, #dfe2e6);
}

.auth-signin-link {
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.auth-footer {
    margin-top: 30px;
    border-top: 1px solid #e7e7e7;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    font-size: 11px;
}

.auth-footer a {
    color: #0066c0;
    text-decoration: none;
    margin: 0 10px;
}