
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: #0A373B;
    color: #2C2C2C;
}


/* =========================
   HEADER
========================= */

/* =========================
   FIRQUI HEADER
   SAME AS BRACELETS PAGE
========================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    background: linear-gradient(
        to bottom,
        #0A373B 0px,
        #0A373B 55px,
        rgba(123, 107, 105, 0.49) 55px,
        rgba(123, 107, 105, 0.49) 110px
    );

    z-index: 1000;
}


/* LOGO */

.header-logo {
    position: absolute;

    left: 24px;
    top: 15px;

    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1100;

    transition: transform 0.25s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* NAVIGATION */

.navigation {
    position: absolute;

    left: 337px;
    top: 42px;

    display: flex;
    align-items: center;

    gap: 18px;

    z-index: 1100;

    transform: translateY(25px);
}

.nav-link {
    font-family: "Inter", sans-serif;

    font-weight: 400;

    font-size: 18px;

    line-height: 24px;

    color: #EC9E96;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    white-space: nowrap;

    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #FAF5EE;
}


/* NAVIGATION DOTS */

.nav-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #EC9E96;

    flex-shrink: 0;

    display: inline-block;
}


/* HEADER ICONS */

.header-icons {
    position: absolute;

    right: 40px;
    top: 38px;

    display: flex;
    align-items: center;

    gap: 20px;

    z-index: 1100;

    transform: translateY(25px);
}

.header-icon-btn {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #EC9E96;

    font-size: 20px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.header-icon-btn:hover {
    color: #FAF5EE;

    transform: translateY(-2px);
}


/* =========================
   CART PAGE
========================= */

.cart-page {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    padding-top: 160px;
    padding-bottom: 80px;
}

.cart-page h1 {
    text-align: center;
    color: #EC9E96;
    font-size: 42px;
    margin-bottom: 40px;
}


/* =========================
   CART CONTAINER
========================= */

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}


/* =========================
   CART ITEMS
========================= */

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: #FAF5EE;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #0A373B;
}

.cart-item-details p {
    margin: 5px 0;
    color: #666;
}

.cart-item-price {
    font-weight: 600;
    color: #0A373B;
}


/* =========================
   CART SUMMARY
========================= */

.cart-summary {
    background: #FAF5EE;
    border-radius: 20px;
    padding: 30px;
}

.cart-summary h2 {
    margin-top: 0;
    color: #0A373B;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.summary-total {
    font-size: 22px;
    font-weight: 600;
    color: #0A373B;
}

.cart-summary hr {
    border: none;
    border-top: 1px solid #ddd;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 30px;
    background: #0A373B;
    color: #EC9E96;
    font-size: 16px;
    cursor: pointer;
}

.checkout-button:hover {
    opacity: 0.9;
}


/* =========================
   RESPONSIVE
   TABLET + MOBILE ONLY
========================= */


/* =========================================================
   TABLET
   601px - 900px
========================================================= */

@media (min-width: 601px) and (max-width: 900px) {

    .cart-page {
        width: 92%;
        max-width: 760px;
        padding-top: 155px;
        padding-bottom: 60px;
    }

    .cart-page h1 {
        font-size: 36px;
        margin-bottom: 28px;
    }


    .cart-container {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }


    #cart-items {
        width: 100%;
        gap: 15px;
    }


    .cart-item {
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
        align-items: center;
    }


    .cart-product-image,
    .cart-item-image {
        width: 105px;
        height: 105px;
        flex-shrink: 0;
        border-radius: 12px;
    }


    .cart-item-details h3 {
        font-size: 19px;
        margin-bottom: 5px;
    }


    .cart-item-details p {
        font-size: 14px;
        margin: 4px 0;
    }


    .quantity-section {
        margin-top: 10px;
        gap: 9px;
    }


    .quantity-btn {
        width: 29px;
        height: 29px;
        font-size: 15px;
    }


    .quantity {
        min-width: 22px;
        font-size: 14px;
    }


    .item-total {
        margin-top: 8px;
        font-size: 13px;
    }


    .remove-btn {
        margin-top: 8px;
        padding: 6px 12px;
        font-size: 11px;
    }


    .cart-summary {
        width: 100%;
        padding: 22px;
        border-radius: 16px;
    }


    .cart-summary h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }


    .summary-row {
        margin: 13px 0;
        font-size: 14px;
    }


    .summary-total {
        margin: 16px 0;
        font-size: 20px;
    }


    .checkout-button {
        padding: 13px;
        margin-top: 12px;
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE
   UP TO 600px
========================================================= */

@media (max-width: 600px) {

    .cart-page {
        width: 94%;
        max-width: 100%;
        padding-top: 145px;
        padding-bottom: 45px;
    }


    .cart-page h1 {
        font-size: 30px;
        margin: 0 0 22px;
    }


    .cart-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }


    #cart-items {
        width: 100%;
        gap: 12px;
    }


    .cart-item {
        width: 100%;
        padding: 12px;
        border-radius: 14px;
        gap: 12px;
        align-items: flex-start;
    }


    .cart-product-image,
    .cart-item-image {
        width: 82px;
        height: 82px;
        min-width: 82px;
        border-radius: 10px;
    }


    .cart-item-details {
        min-width: 0;
        width: 100%;
    }


    .cart-item-details h3 {
        font-size: 16px;
        line-height: 1.25;
        margin: 0 0 5px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .cart-item-details p {
        font-size: 12px;
        line-height: 1.35;
        margin: 3px 0;
    }


    .cart-item-price {
        font-size: 14px;
    }


    .quantity-section {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-top: 8px;
    }


    .quantity-btn {
        width: 27px;
        height: 27px;
        font-size: 14px;
    }


    .quantity {
        min-width: 20px;
        font-size: 13px;
    }


    .item-total {
        margin-top: 7px;
        font-size: 11px;
    }


    .item-total strong {
        margin-left: 3px;
    }


    .remove-btn {
        margin-top: 7px;
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 16px;
    }


    /* CART SUMMARY */

    .cart-summary {
        width: 100%;
        padding: 18px;
        border-radius: 14px;
    }


    .cart-summary h2 {
        font-size: 20px;
        margin: 0 0 15px;
    }


    .summary-row {
        margin: 10px 0;
        font-size: 13px;
    }


    .summary-total {
        margin: 13px 0;
        font-size: 19px;
    }


    .cart-summary hr {
        margin: 10px 0;
    }


    .checkout-button {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        border-radius: 24px;
        font-size: 14px;
    }


    /* EMPTY CART */

    .empty-cart {
        padding: 40px 18px;
        border-radius: 14px;
    }


    .empty-cart h2 {
        font-size: 21px;
        margin-bottom: 8px;
    }


    .empty-cart p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
    }


    .continue-shopping {
        padding: 10px 18px;
        font-size: 13px;
    }


    /* FOOTER */

    .footer {
        height: auto;
        min-height: 100px;

        padding: 20px 20px 30px;

        flex-direction: column;
        justify-content: center;

        gap: 12px;

        text-align: center;

        font-size: 14px;
    }


    .footer-copy,
    .footer-credit {
        justify-content: center;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   UP TO 380px
========================================================= */

@media (max-width: 380px) {

    .cart-page {
        width: 95%;
        padding-top: 140px;
    }


    .cart-page h1 {
        font-size: 27px;
    }


    .cart-item {
        padding: 10px;
        gap: 9px;
    }


    .cart-product-image,
    .cart-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }


    .cart-item-details h3 {
        font-size: 14px;
    }


    .cart-item-details p {
        font-size: 11px;
    }


    .cart-item-price {
        font-size: 13px;
    }


    .quantity-btn {
        width: 25px;
        height: 25px;
    }


    .remove-btn {
        padding: 4px 8px;
        font-size: 9px;
    }


    .cart-summary {
        padding: 15px;
    }


    .cart-summary h2 {
        font-size: 18px;
    }


    .summary-row {
        font-size: 12px;
    }


    .summary-total {
        font-size: 17px;
    }
}


/* =========================
   FIRQUI FOOTER
   SAME AS BRACELETS PAGE
========================= */

.footer {
    position: relative;

    width: 100%;
    height: 100px;

    padding: 0 77px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: "Almarai", sans-serif;

    font-size: 24px;
    line-height: 1;

    color: #EC9E96;

    z-index: 10;
}

.footer-copy {
    display: flex;
    align-items: center;
}

.footer-credit {
    display: flex;
    align-items: center;

    gap: 6px;
}

.footer-credit strong {
    font-weight: 700;
    color: #FAF5EE;
}



/* =========================
   CART PRODUCT CONTROLS
========================= */

.cart-product-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #114246;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}


.quantity-btn {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #0A373B;
    color: #EC9E96;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    transition: 0.2s ease;
}


.quantity-btn:hover {
    background: #EC9E96;
    color: #0A373B;
}


.quantity {
    min-width: 25px;

    text-align: center;

    font-size: 16px;
    font-weight: 600;

    color: #0A373B;
}


.item-total {
    margin-top: 15px;

    color: #2C2C2C;

    font-size: 14px;
}


.item-total strong {
    color: #0A373B;
    margin-left: 5px;
}


.remove-btn {
    margin-top: 12px;

    padding: 7px 15px;

    border-radius: 20px;

    background: transparent;

    color: #EC9E96;

    border: 1px solid #EC9E96;

    cursor: pointer;

    font-size: 12px;

    transition: 0.2s ease;
}


.remove-btn:hover {
    background: #EC9E96;
    color: #0A373B;
}


/* =========================
   EMPTY CART
========================= */

.empty-cart {
    width: 100%;

    background: #FAF5EE;

    border-radius: 20px;

    padding: 60px 30px;

    text-align: center;
}


.empty-cart h2 {
    color: #0A373B;

    margin-bottom: 10px;
}


.empty-cart p {
    color: #666;

    margin-bottom: 25px;
}


.continue-shopping {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 25px;

    background: #0A373B;

    color: #EC9E96;

    text-decoration: none;

    font-size: 14px;

    transition: 0.2s ease;
}


.continue-shopping:hover {
    background: #EC9E96;
    color: #0A373B;
}



/* =========================================
   FINAL FIRQUI HEADER FIX
   REMOVE DEFAULT BUTTON STYLING
========================================= */

.header-icon-btn {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    color: #EC9E96;

    font-size: 20px;

    text-decoration: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.header-icon-btn:hover {
    background: transparent;

    color: #FAF5EE;

    transform: translateY(-2px);
}


/* Make sure icon itself has no background */

.header-icon-btn i {
    background: transparent;

    color: inherit;

    font-size: inherit;

    line-height: 1;

    pointer-events: none;
}


/* Remove browser focus background */

.header-icon-btn:focus,
.header-icon-btn:active {
    outline: none;
    background: transparent;
    box-shadow: none;
}



/* =========================================
   ACTIVE WISHLIST HEART
========================================= */

.wishlist-btn.wishlist-active {
    color: #EC9E96;
}


.wishlist-btn.wishlist-active i {
    color: #EC9E96;
}
