/* Amazon Clone CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #e3e6e6;
}

/* Header Styles */
header {
    background-color: #131921;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.logo {
    width: 100px;
    object-fit: contain;
}

.location-container {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    cursor: pointer;
}

.location-container:hover {
    border: 1px solid white;
}

.location-text {
    margin-left: 5px;
    font-size: 12px;
}

.location-text span {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.search-container {
    flex: 1;
    display: flex;
    height: 40px;
}

.search-select {
    width: 50px;
    background: #f3f3f3;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-input {
    flex: 1;
    padding: 0 10px;
    border: none;
}

.search-button {
    width: 45px;
    background: #febd69;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.nav-item {
    padding: 5px 8px;
    cursor: pointer;
}

.nav-item:hover {
    border: 1px solid white;
}

.nav-item-main {
    font-weight: bold;
    font-size: 14px;
}

.nav-item-sub {
    font-size: 12px;
}

.cart {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-icon {
    width: 35px;
}

.cart-text {
    font-weight: bold;
}

/* Navbar Styles */
.navbar {
    background-color: #232f3e;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    color: white;
}

.menu-icon {
    margin-right: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-left: 20px;
}

.nav-links li {
    cursor: pointer;
    padding: 5px;
}

.nav-links li:hover {
    border: 1px solid white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    z-index: 1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 2;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    margin-top: -300px;
    position: relative;
    z-index: 2;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card h2 {
    font-size: 21px;
    margin-bottom: 15px;
}

.product-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

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

.product-item img {
    width: 100%;
    height: auto;
}

.product-item p {
    font-size: 14px;
    margin-top: 5px;
}

.see-more {
    color: #007185;
    margin-top: 15px;
    cursor: pointer;
}

.see-more:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Back to Top Button */
.back-to-top {
    background-color: #37475A;
    color: white;
    text-align: center;
    padding: 15px;
    cursor: pointer;
}

.back-to-top a {
    color: white;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: #485769;
}

/* Footer Styles */
footer {
    background-color: #232F3E;
    color: white;
    padding: 40px 0;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #DDD;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #3a4553;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.footer-logo img {
    width: 100px;
}

.footer-language select {
    background-color: #232F3E;
    color: white;
    border: 1px solid #848688;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Copyright Section */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    color: #DDD;
}

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

.footer-copyright ul li a {
    color: #DDD;
    text-decoration: none;
}

.footer-copyright ul li a:hover {
    text-decoration: underline;
}

.footer-copyright p {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
