/* Responsive styles */

@media (max-width: 1024px) {

    /* Header */
    header {
        position: relative;
    }

    nav ul {
        display: none;
    }

    .header-icons {
        display: none;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu.active {
        max-height: 400px;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu li {
        text-align: right;
        padding: 20px;
    }

    .mobile-menu li a {
        font-size: 16px;
        text-decoration: none;
        color: #0C0C20;
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
    }

    .mobile-menu .mobile-icons {
        display: flex;
        justify-content: right;
        gap: 40px;
        padding: 20px;
    }

    .mobile-menu .mobile-icons img {
        width: 24px;
        height: 24px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card img {
    max-width: 350px;
    }

    /*Product Page */
      .product-detail-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .customer-review-container {
        margin-left: 158px;
    }

    /* Cart Page */
    .cart-container {
        margin: 100px auto;
        padding: 40px 30px;
    }

    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 250px 220px 200px 100px 12px;
        gap: 0px;
    }

    .cart-item-header {
        font-size: 16px;
    }

    .item-details {
        gap: 12px;
        padding-right: 10px;
    }

    .cart-item img {
        width: 70px;
        height: 70px;
    }

    .cart-summary {
        padding-right: 0;
        align-items: center;
    }

    /* Checkout Page */
    .checkout-page {
        grid-template-columns: 1fr;
    }
    
    .checkout-cart-section {
        margin: 0 auto;
        position: static;
    }
    
    .checkout-form-sections {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }

    .shipping-info,
    .payment-form {
        padding: 30px 20px;
        width: 95%;
    }

    .two-column {
        width: 100%;
    }
}


@media (max-width: 768px) {

    .cta {
        font-size: 16px;
    }

    /* Carousel */
    .carousel-slide p {
        font-size: 24px;
        text-align: center;
    }

    .carousel-content-slide-2  {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .carousel-image_text-2 {
        position: static;
        transform: none;
        font-size: 48px;
        margin-top: 20px;
    }

    .carousel-content-slide-2-button {
        position: static;
        transform: none;
        margin-top: 20px;
    }

    .shop-now-btn {
        width: 175px;
        height: 40px;
        font-size: 16px; 
        padding: 8px 20px;
    }
    
    .carousel-nav__prev,
    .carousel-nav__next {
    width: 40px;
    height: 40px;
    font-size: 12px;
    }

    /* Featured Products */
    .featured-products h3,
    .featured-products p {
        font-size: var(--font-size-small);
    }

    /* Product Page */
    .customer-review-container {
        margin-left: 10px;
    }

    .share-btn p {
        display: none;
    }

    /*cart page */
    .cart-container {
        margin: 80px 20px;
        padding: 30px 20px;
    }

    .cart-item-header {
        font-size: 14px;
    }

    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 180px 130px 150px 80px 12px;
    }

    .item-details {
        gap: 8px;
        padding-right: 5px;
    }

    .item-details p {
        font-size: 14px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .item-price .original-price {
        font-size: 14px;
    }

    .item-price .discounted-price {
        font-size: 14px;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .quantity-input {
        width: 30px;
        font-size: 14px;
    }

    .remove-item-btn {
        font-size: 1.2rem;
    }

    
    /*Success Page */
    .success-container h1 {
        font-size: 32px;
    }

    .success-container h2 {
        font-size: 16px;
    }

}


@media (max-width: 600px) {

    /* Footer */
    footer ul {
        flex-direction: column;
        gap: 5px;}

    footer ul li a {
        font-weight: 400;
    }

    /* Product Grid */
    .featured-products h1 {
        font-size: var(--font-size-h2);
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cart Page */
    .cart-container {
        margin: 60px 15px;
        padding: 20px 10px;
        overflow-x: auto;
    }

    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 120px 130px 150px 80px 12px;
        min-width: 450px;
    }

    .cart-item-header {
        font-size: 14px;
    }

    .item-details {
        gap: 8px;
        padding-right: 5px;
    }

    .item-details p {
        font-size: 14px;
    }

    .cart-item img {
        width: 50px;
        height: 50px;
    }

    .item-price .original-price {
        font-size: 14px;
    }

    .item-price .discounted-price {
        font-size: 14px;
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
        border-width: 2px;
    }

    .quantity-input {
        width: 15px;
        font-size: 12px;
    }

    .item-total,
    .item-price {
        font-size: 14px;
    }

    .remove-item-btn {
        font-size: 1rem;
    }
    
    /* Checkout Page */
    .checkout-cart-section {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .shipping-info,
    .payment-form {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .shipping-info h1,
    .payment-form h1,
    .checkout-cart-section h2 {
        font-size: 20px;
        text-align: center;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-item {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .checkout-item img {
        width: 50px;
        height: 55px;
    }

    .checkout-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .product-name,
    .product-quantity {
        font-size: 14px;
    }

    .subtotal-container {
        padding-right: 0;
    }
}

@media (max-width: 500px) {

    /* Cart Page */
    .cart-container {
        margin: 40px 10px;
        padding: 15px 8px;
        border-width: 2px;
        overflow-x: auto;
    }

    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 100px 110px 110px 60px 12px;
        min-width: 380px;
    }

    .cart-item-header {
        font-size: 10px;
    }

    .item-details {
        gap: 5px;
        padding-right: 0;
    }

    .item-details p {
        font-size: 14px;
    }

    .item-total-amount,
    .item-price {
        font-size: 14px;
    }


    .cart-item img {
        width: 45px;
        height: 45px;
    }

    .item-price {
        font-size: 14px;
    }

    .item-price .original-price {
        font-size: 14px;
    }

    .item-price .discounted-price {
        font-size: 14px;
    }

    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
        border-width: 2px;
    }

    .quantity-input {
        width: 22px;
        font-size: 11px;
    }

    .item-total,
    .item-price {
        font-size: 14px;
    }

    .remove-item-btn {
        font-size: 0.9rem;
    }

    /* Login Page */
    .login-container {
        margin: 60px auto;
        padding: 20px;
    }
    
    .login-form-group label {
        margin-left: 10%;
    }

    .login-form-group input,
    .login-btn {
        width: 85%;
    }

    /*Checkout Page */
    .checkout-page {
        margin: 15px;
    }

    /*Forms */
    .login-container, .register-container, .checkout-page, .success-message {
        width: 80%;
    }
}

@media (max-width: 412px) {

    /* Cart Page */
    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 80px 100px 100px 60px 12px;
        min-width: 350px;
    }
    
    .item-details {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 320px) {

    /* Cart Page */
    .cart-container {
        overflow-x: visible;
        padding: 15px 5px;
    }

    .cart-item-header,
    .cart-item-card {
        grid-template-columns: 1.2fr 1fr 1.3fr 1fr 24px;
        gap: 8px;
        min-width: auto;
    }

    .cart-item-header {
        font-size: 10px;
    }

    .item-details {
        gap: 8px;
    }

    .cart-item-card img {
        display: none;
    }
    
}