:root {
    --primary-color: #232f3e;
    --secondary-color: #ff9900;
    --text-color: #333;
    --bg-color: #f3f3f3;
    --white: #ffffff;
}

body {
    font-family: "Amazon Ember", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.search-box form {
    display: flex;
}

.search-box input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 300px;
}

.search-box button {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

nav.main-nav {
    background-color: #37475a;
    padding: 10px 0;
}

nav.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

main {
    padding: 20px 0;
    min-height: 80vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: var(--white);
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
    margin: 10px 0;
}

.price {
    color: #B12704;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: #f0c14b;
    border: 1px solid #a88734;
    padding: 8px 15px;
    text-decoration: none;
    color: #111;
    border-radius: 3px;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination a {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

footer a {
    color: #ddd;
    text-decoration: none;
}

/* Landing Page / Product Detail */
.product-detail {
    background: var(--white);
    padding: 20px;
    display: flex;
    gap: 40px;
}

.product-detail img {
    max-width: 400px;
}

.product-info h1 {
    font-size: 24px;
    margin-top: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--secondary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

input:checked+.slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}