* {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    border: border-box;
}
body {
     background-color: #e2e7e6;
}
header {
    position: fixed;
    width: 100%;
}
.navBar {
    height: 60px;
    background-color: #0f1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.nav_logo{
    height: 50px;
    width: 100px;

}
.logo {
    background-image: url("amazonlogo.png");
    background-size: cover;
    height: 50%;
    width: 100px;
    margin-top: 10px;
    
}
.border{
    border: 1.5px solid transparent;
}
.border:hover {
    border: 1.5px solid white;
}

.add-first {
    font-size: 0.85rem;

    

}
.add-second {
    font-size: 1rem;

    font-weight: bold;
}
.add-icon {
    display: flex;
    align-items: center;

}
.nav-addres:hover {
    border: 1.5px solid white;
}
.navsearch {
    margin-left: 19px;
    display: flex;

    justify-content: space-evenly;
    background-color: orange;
    width: 645px;
    height: 40px;
    border-radius: 4px;
}
.navsearch:hover {
    border: 3px solid #febd68 ;
}
.search-select {
    width: 50px;
    background-color: rgb(237, 230, 230);
    text-align: center;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: none;
}
.search-input {

    width: 100%;
    border: none;
}
.searchicon {
    background-color: #febd68;
    color: black;
    font-weight: bold;
    width: 45;
    padding: 8px;
    font-size: 1.2rem;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.language {
    margin-left: 15px ;
    display: flex;
    padding-top: 10px;
}
.selectlanguage {
    color: white;
    border: none;
    width: 50px;
    font-weight: bold;
    background-color: #0f1111;
}
.signin {
    margin-left: 15px;
    width: 120px;
    height: 50px;
}
.signin:hover {
    border: 2px solid white;
}
.line1 {
    font-size: 0.75rem;
}
.line2 {
    font-size: 0.9rem;
    font-weight: 700;
}
.return-order:hover {
    border: 2px solid white;
}

.return {
    font-size: 0.7rem;
}
.order {
    font-size: 0.8rem;
    font-weight: 700;
}

.carticon {
    font-size: 1.8rem;
    
}
.cartname{
    padding-top: 19px;
    font-size: 0.8rem;
    font-weight: 700;
}
.cart {
    display: flex;
}
.cart:hover {
    border: 2px solid white;


}
.panel {
    height: 40px;
    background-color: #222f3d;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
}
.iconall {
    display: flex;
    color: white;
}
.options p {
    margin-left: 19px;
    display: inline-block;
}
.options {
    
    color: white;
    width: 70%;
    font-size: 0.85rem;
}
.options p:hover {
    border: 1.5px solid white;
}
.deals {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}
.deals:hover {
    border: 1.5px solid white;
}
.iconall:hover {
    border: 1.5px solid white;
}
.herosection {
    position: relative;
    top: 100px;
    background-image: url("hero.jpg");
    background-size: cover;
    height: 600px;
}

.box {
    margin-right: 16px;
    height: 348px;
    border: 19px solid white;
    width: 259px;
    background-color: white;
    
}
.shop {
    display: flex;
    flex-wrap: wrap;
   
    position: absolute;
    top: 390px;
}
.shopsection {

    display: flex;
    align-items: center;
    justify-content: space-evenly;
    
}
.shopgamtag:hover {
    color: black;
}
.box1 {
    margin-left: 16px;
}
.gaming {
    margin-top: 10px;
    height: 290px;
    width: 250px;
    background-image: url("game.jpg");
    background-size: cover;
}  
.links:hover {
    color: #0f1111 !important;
}


.foot_panel1{
    position: relative;
    
    background-color: #37475a;
    color: white;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}
.foot_panel2{
    padding-top: 50px;
    background-color: #222f3d;
    color: white;
    height: 500px;
    display: flex;
    justify-content: center;
    justify-content: space-evenly;
}
ul a {
    font-size: 0.85rem;
    display: block;
    color: #dddddd;
    margin-top: 10px;   
    text-decoration: none;
}
ul a:hover {
    text-decoration: underline;
}
.foot_panel3 {
    background-color: #222f3d;
    color: white;
    border-top: 0.5px solid white;
    height: 100px;
    display: flex;
    justify-content: center;
}
.foot_panel4 {
    background-color: #131A22;
    height: 500px;
    width: 1264.5px;
    display: flex;
    justify-content: center;
    padding-top: 19px;
}
.foot_panel4 ul a {
    margin-top: 0px;
}
.footlink{
    text-decoration: none;
}
.footlink:hover {
    text-decoration: underline;
}
/* Additional styles for products and cart pages */

/* Products Page Layout */
.products-page {
    position: relative;
    top: 100px;
    padding: 20px;
    min-height: 600px;
    background-color: #e2e7e6;
}

.products-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.products-header h1 {
    font-size: 28px;
    color: #0f1111;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #0f1111;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
}

.filter-group select:hover {
    border-color: #febd68;
}

.filter-group input[type="range"] {
    width: 200px;
    cursor: pointer;
}

#price-value {
    font-weight: bold;
    color: #B12704;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    margin: 10px 0;
    color: #0f1111;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #B12704;
    margin: 10px 0;
}

.product-category {
    color: #565959;
    font-size: 12px;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.add-to-cart-btn {
    background-color: #ffd814;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #f7ca00;
}

.no-products {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #565959;
    grid-column: 1 / -1;
}

/* Cart Page */
.cart-page {
    position: relative;
    top: 100px;
    padding: 20px;
    min-height: 600px;
    background-color: #e2e7e6;
}

.cart-page h1 {
    margin-bottom: 30px;
    color: #0f1111;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin-bottom: 5px;
    color: #0f1111;
}

.cart-item-price {
    color: #B12704;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
}

.cart-item-quantity button:hover {
    background-color: #e0e0e0;
}

.cart-item-quantity span {
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #007185;
    cursor: pointer;
    margin-top: 10px;
    font-size: 12px;
}

.remove-btn:hover {
    color: #B12704;
    text-decoration: underline;
}

.cart-item-total {
    font-weight: bold;
    font-size: 18px;
    color: #0f1111;
    min-width: 100px;
    text-align: right;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #0f1111;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
}

.empty-cart h2 {
    margin-bottom: 10px;
    color: #0f1111;
}

.empty-cart p {
    margin-bottom: 20px;
    color: #565959;
}

.shop-now-btn {
    display: inline-block;
    background-color: #ffd814;
    color: #0f1111;
    padding: 10px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.shop-now-btn:hover {
    background-color: #f7ca00;
}

/* Checkout Section */
.checkout-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.checkout-section h2 {
    margin-bottom: 20px;
    color: #0f1111;
}

.checkout-section h3 {
    margin: 20px 0 15px 0;
    color: #0f1111;
}

.checkout-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #0f1111;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #febd68;
    box-shadow: 0 0 0 2px rgba(254, 189, 104, 0.2);
}

.error-message {
    font-size: 12px;
    margin-top: 5px;
}

.place-order-btn {
    background-color: #ffd814;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background-color: #f7ca00;
}

/* Quick Add Button for Homepage */
.quick-add-btn {
    background-color: #ffd814;
    border: none;
    padding: 8px;
    margin-top: 10px;
    width: 100%;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.quick-add-btn:hover {
    background-color: #f7ca00;
}

/* Notification */
#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-page, .cart-page {
        top: 80px;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-total {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 14px;
        height: auto;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input[type="range"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-page h1 {
        font-size: 24px;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .place-order-btn {
        width: 100%;
        max-width: none;
    }
}

/* Cart link hover */
.cart {
    cursor: pointer;
}

/* Product card badge */
.product-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd814;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    display: none;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #565959;
}

/* Success state for checkout */
.checkout-success {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
}

.checkout-success h2 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Fix for fixed header */
body {
    padding-top: 0;
}

/* Ensure footer doesn't overlap */
.footer {
    position: relative;
    z-index: 1;
}

/* Make product images responsive */
img {
    max-width: 100%;
    height: auto;
}