/* =========================================================
   WRITERS VS ARTISTS
   CART PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.cart-page {
    width: 100%;

    background-color: #050b10;

    color: #f4f1e8;
}



/* =========================================================
   CART HERO
========================================================= */

.cart-hero {
    position: relative;

    width: 100%;

    min-height: 150px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 11, 16, 0.92) 0%,
            rgba(5, 11, 16, 0.76) 50%,
            rgba(5, 11, 16, 0.58) 100%
        ),
        url("../Images/placeholder.jpg");

    background-size: cover;
    background-position: center;

    border-bottom: 1px solid #332915;
}


.cart-hero-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 30px 65px;
}


.cart-hero h1 {
    color: #f4f1e8;

    font-size: clamp(42px, 4vw, 62px);

    font-weight: normal;

    line-height: 1;

    margin-bottom: 10px;
}


.cart-hero p {
    color: #d0ccc2;

    font-size: 16px;
}



/* =========================================================
   MAIN CART AREA
========================================================= */

.cart-content-section {
    width: 100%;

    background-color: #050b10;

    padding: 0 0 25px;
}


.cart-content-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 390px);

    gap: 25px;

    align-items: start;
}



/* =========================================================
   CART ITEMS COLUMN
========================================================= */

.cart-items-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}



/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    width: 100%;

    min-height: 180px;

    display: grid;

    grid-template-columns:
        115px
        minmax(0, 1fr)
        230px;

    gap: 22px;

    align-items: center;

    padding: 12px 18px;

    background-color: #081016;

    border: 1px solid #40351d;
}



/* =========================================================
   CART ITEM IMAGE
========================================================= */

.cart-item-image {
    width: 105px;

    aspect-ratio: 3 / 4;

    display: block;

    overflow: hidden;

    background-color: #151b20;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.25);
}


.cart-item-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.cart-item-image:hover img {
    transform: scale(1.04);
}



/* =========================================================
   CART ITEM INFORMATION
========================================================= */

.cart-item-info {
    min-width: 0;
}


.cart-item-info h2 {
    color: #f4f1e8;

    font-size: 22px;

    font-weight: normal;

    line-height: 1.2;

    margin-bottom: 5px;
}


.cart-item-creator {
    color: #d5a62b;

    font-size: 14px;

    margin-bottom: 21px;
}


.cart-item-format {
    color: #c8c4ba;

    font-size: 13px;

    margin-bottom: 11px;
}


.cart-item-format span {
    color: #d5a62b;

    font-weight: bold;
}


.cart-item-stock {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    color: #aaa69c;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
}


.cart-stock-status {
    color: #7fbd4a;
}


.cart-stock-dot {
    color: #d5a62b;
}



/* =========================================================
   CART ITEM ACTIONS
========================================================= */

.cart-item-actions {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: space-between;

    align-self: stretch;

    padding: 4px 0;
}


.cart-item-price {
    color: #d5a62b;

    font-size: 25px;

    line-height: 1;

    margin-bottom: 20px;
}



/* =========================================================
   QUANTITY
========================================================= */

.cart-quantity {
    display: grid;

    grid-template-columns:
        40px
        50px
        40px;

    height: 38px;

    border: 1px solid #504528;

    margin-bottom: 20px;
}


.quantity-button,
.quantity-number {
    display: flex;

    align-items: center;
    justify-content: center;
}


.quantity-button {
    background-color: transparent;

    color: #f4f1e8;

    border: none;

    cursor: pointer;

    font-size: 19px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.quantity-button:first-child {
    border-right: 1px solid #302a1d;
}


.quantity-button:last-child {
    border-left: 1px solid #302a1d;
}


.quantity-button:hover {
    background-color: #d5a62b;

    color: #050b10;
}


.quantity-number {
    color: #f4f1e8;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
}



/* =========================================================
   REMOVE / SAVE
========================================================= */

.cart-item-links {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    width: 100%;
}


.cart-item-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 0;

    background: none;

    color: #b8b3aa;

    border: none;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.cart-item-link:hover {
    color: #d5a62b;
}


.cart-action-divider {
    width: 1px;
    height: 15px;

    background-color: #554725;
}



/* =========================================================
   ORDER SUMMARY
========================================================= */

.cart-summary-column {
    width: 100%;
}


.cart-summary-box {
    width: 100%;

    background-color: #081016;

    border: 1px solid #8b651d;

    padding: 24px 25px 25px;
}



/* =========================================================
   ORDER SUMMARY HEADING
========================================================= */

.cart-summary-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 16px;

    border-bottom: 1px solid #554725;

    margin-bottom: 20px;
}


.cart-summary-heading h2 {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.cart-summary-heading span {
    color: #e5e1d7;

    font-size: 14px;
}



/* =========================================================
   SUMMARY ROWS
========================================================= */

.cart-summary-totals {
    display: flex;

    flex-direction: column;

    gap: 20px;

    padding-bottom: 22px;

    border-bottom: 1px solid #40351d;
}


.cart-summary-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    color: #b8b3aa;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
}


.cart-summary-row strong {
    color: #ddd8ce;

    font-weight: normal;

    white-space: nowrap;
}



/* =========================================================
   PROMO CODE
========================================================= */

.cart-promo {
    padding: 24px 0;

    border-bottom: 1px solid #40351d;
}


.cart-promo > p {
    color: #a9a59c;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    margin-bottom: 11px;
}


.cart-promo-form {
    display: grid;

    grid-template-columns: 1fr 86px;

    gap: 10px;
}


.cart-promo-form input {
    width: 100%;

    min-width: 0;

    padding: 11px 12px;

    background-color: #050b10;

    color: #f4f1e8;

    border: 1px solid #504528;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
}


.cart-promo-form input::placeholder {
    color: #7e7a72;
}


.cart-promo-form input:focus {
    border-color: #d5a62b;
}


.cart-promo-form button {
    background-color: transparent;

    color: #f4f1e8;

    border: 1px solid #504528;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.cart-promo-form button:hover {
    background-color: #d5a62b;

    border-color: #d5a62b;

    color: #050b10;
}



/* =========================================================
   ESTIMATED TOTAL
========================================================= */

.cart-estimated-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 0;
}


.cart-estimated-total span {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 1px;
}


.cart-estimated-total strong {
    color: #d5a62b;

    font-size: 27px;

    font-weight: normal;
}



/* =========================================================
   SUMMARY BUTTONS
========================================================= */

.cart-checkout-button,
.cart-continue-button {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.cart-checkout-button {
    background-color: #d5a62b;

    color: #050b10;

    border: 1px solid #d5a62b;

    margin-bottom: 10px;
}


.cart-checkout-button:hover {
    background-color: #ebbd42;

    border-color: #ebbd42;
}


.cart-continue-button {
    background-color: transparent;

    color: #f4f1e8;

    border: 1px solid #8b651d;
}


.cart-continue-button:hover {
    background-color: #d5a62b;

    color: #050b10;

    border-color: #d5a62b;
}



/* =========================================================
   SECURITY MESSAGE
========================================================= */

.cart-security {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #77746e;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    margin-top: 14px;

    text-align: center;
}



/* =========================================================
   YOU MAY ALSO LIKE
========================================================= */

.cart-related-section {
    width: 100%;

    background-color: #050b10;

    padding: 0 0 18px;
}


.cart-related-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;
}



/* =========================================================
   RELATED HEADING
========================================================= */

.cart-related-heading {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 14px;

    margin-bottom: 12px;
}


.cart-related-heading h2 {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    white-space: nowrap;
}


.cart-related-line {
    height: 1px;

    background-color: #554725;
}


.cart-related-heading a {
    color: #d5a62b;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;

    white-space: nowrap;
}


.cart-related-heading a:hover {
    color: #ebbd42;
}



/* =========================================================
   RELATED ROW
========================================================= */

.cart-related-row {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 28px;
}



/* =========================================================
   RELATED CARD
========================================================= */

.cart-related-card {
    min-width: 0;

    display: grid;

    grid-template-columns: 85px 1fr;

    gap: 14px;

    align-items: center;
}


.cart-related-image {
    width: 85px;

    aspect-ratio: 3 / 4;

    display: block;

    overflow: hidden;

    background-color: #151b20;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.25);
}


.cart-related-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.cart-related-image:hover img {
    transform: scale(1.04);
}


.cart-related-info {
    min-width: 0;
}


.cart-related-info h3 {
    color: #f4f1e8;

    font-size: 16px;

    font-weight: normal;

    line-height: 1.2;

    margin-bottom: 6px;
}


.cart-related-creator {
    color: #8f8b83;

    font-size: 11px;

    margin-bottom: 8px;
}


.cart-related-price {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;
}



/* =========================================================
   NEWSLETTER
========================================================= */

.cart-newsletter-section {
    width: 100%;

    background-color: #0a1116;

    border-top: 1px solid #40351d;
    border-bottom: 1px solid #40351d;

    padding: 28px 0;
}


.cart-newsletter-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: grid;

    grid-template-columns:
        1fr
        minmax(350px, 520px);

    align-items: center;

    gap: 70px;
}



/* =========================================================
   NEWSLETTER MESSAGE
========================================================= */

.cart-newsletter-message {
    display: flex;

    align-items: center;

    gap: 20px;
}


.cart-newsletter-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #d5a62b;

    border: 1px solid #554725;

    font-size: 20px;
}


.cart-newsletter-message h2 {
    color: #f4f1e8;

    font-size: 23px;

    font-weight: normal;

    margin-bottom: 5px;
}


.cart-newsletter-message p {
    color: #969188;

    font-size: 13px;
}



/* =========================================================
   NEWSLETTER FORM
========================================================= */

.cart-newsletter-form {
    display: flex;

    width: 100%;
}


.cart-newsletter-form input {
    flex: 1;

    min-width: 0;

    padding: 13px 15px;

    background-color: #050b10;

    color: #f4f1e8;

    border: 1px solid #504528;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
}


.cart-newsletter-form input::placeholder {
    color: #8e8a82;
}


.cart-newsletter-form input:focus {
    border-color: #d5a62b;
}


.cart-newsletter-form button {
    padding: 13px 27px;

    background-color: #d5a62b;

    color: #050b10;

    border: 1px solid #d5a62b;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    transition: background-color 0.2s ease;
}


.cart-newsletter-form button:hover {
    background-color: #ebbd42;
}



/* =========================================================
   FOOTER
========================================================= */

.cart-footer {
    width: 100%;

    background-color: #03080c;
}


.cart-footer-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 45px 65px 38px;

    display: grid;

    grid-template-columns:
        1.7fr
        repeat(4, 1fr)
        1.2fr;

    gap: 45px;
}



/* =========================================================
   FOOTER BRAND
========================================================= */

.cart-footer-brand {
    max-width: 280px;
}


.cart-footer-brand .footer-logo {
    margin-bottom: 17px;
}


.cart-footer-brand > p {
    color: #8f8a82;

    font-size: 13px;

    line-height: 1.55;
}



/* =========================================================
   FOOTER COLUMNS
========================================================= */

.cart-footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}


.cart-footer-column h3 {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 4px;
}


.cart-footer-column > a {
    color: #aaa59c;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    transition: color 0.2s ease;
}


.cart-footer-column > a:hover {
    color: #d5a62b;
}



/* =========================================================
   SOCIAL
========================================================= */

.cart-social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    max-width: 125px;
}


.cart-social-links a {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #c7c2b9;

    text-decoration: none;

    border: 1px solid #39301e;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}


.cart-social-links a:hover {
    color: #d5a62b;

    border-color: #d5a62b;
}



/* =========================================================
   FOOTER BOTTOM
========================================================= */

.cart-footer-bottom {
    width: 100%;

    padding-bottom: 20px;
}


.cart-footer-bottom-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: flex;

    align-items: center;

    gap: 20px;
}


.cart-footer-line {
    height: 1px;

    flex: 1;

    background-color: #28231c;
}


.cart-footer-bottom p {
    color: #68655f;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    white-space: nowrap;
}


.cart-footer-mark {
    color: #7c7568;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;
}



/* =========================================================
   SMALL DESKTOP
========================================================= */

@media (max-width: 1200px) {

    .cart-content-container {
        grid-template-columns:
            minmax(0, 1fr)
            330px;
    }


    .cart-item {
        grid-template-columns:
            100px
            minmax(0, 1fr)
            180px;

        gap: 18px;
    }


    .cart-item-image {
        width: 95px;
    }


    .cart-item-links {
        flex-direction: column;

        align-items: flex-end;

        gap: 7px;
    }


    .cart-action-divider {
        display: none;
    }


    .cart-related-row {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 28px 40px;
    }


    .cart-footer-container {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 40px 35px;
    }

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cart-hero-container,
    .cart-content-container,
    .cart-related-container,
    .cart-newsletter-container,
    .cart-footer-container,
    .cart-footer-bottom-container {
        padding-left: 30px;
        padding-right: 30px;
    }


    .cart-content-container {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .cart-summary-column {
        max-width: none;
    }


    .cart-item {
        grid-template-columns:
            100px
            minmax(0, 1fr)
            190px;
    }


    .cart-newsletter-container {
        grid-template-columns: 1fr;

        gap: 25px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .cart-hero {
        min-height: 130px;
    }


    .cart-hero h1 {
        font-size: 40px;
    }


    .cart-item {
        grid-template-columns:
            85px
            1fr;

        gap: 16px;

        padding: 15px;
    }


    .cart-item-image {
        width: 85px;

        align-self: start;
    }


    .cart-item-actions {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            1fr
            auto;

        gap: 14px 20px;

        align-items: center;

        padding-top: 10px;

        border-top: 1px solid #29251b;
    }


    .cart-item-price {
        margin: 0;

        justify-self: start;
    }


    .cart-quantity {
        margin: 0;

        justify-self: end;
    }


    .cart-item-links {
        grid-column: 1 / -1;

        flex-direction: row;

        justify-content: flex-end;

        align-items: center;

        gap: 12px;
    }


    .cart-action-divider {
        display: block;
    }


    .cart-related-heading {
        grid-template-columns:
            1fr
            auto;
    }


    .cart-related-line {
        display: none;
    }


    .cart-related-row {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .cart-related-card {
        grid-template-columns:
            75px
            1fr;
    }


    .cart-related-image {
        width: 75px;
    }


    .cart-newsletter-form {
        flex-direction: column;

        gap: 10px;
    }


    .cart-newsletter-form button {
        width: 100%;
    }


    .cart-footer-container {
        grid-template-columns:
            1fr
            1fr;

        gap: 35px 25px;
    }


    .cart-footer-brand {
        grid-column: 1 / -1;
    }


    .cart-footer-bottom-container {
        flex-wrap: wrap;

        justify-content: center;

        text-align: center;
    }


    .cart-footer-bottom p {
        width: 100%;

        white-space: normal;

        order: 2;
    }


    .cart-footer-mark {
        order: 1;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .cart-hero-container,
    .cart-content-container,
    .cart-related-container,
    .cart-newsletter-container,
    .cart-footer-container,
    .cart-footer-bottom-container {
        padding-left: 22px;
        padding-right: 22px;
    }


    .cart-item {
        grid-template-columns:
            75px
            1fr;
    }


    .cart-item-image {
        width: 75px;
    }


    .cart-item-info h2 {
        font-size: 18px;
    }


    .cart-item-creator {
        margin-bottom: 14px;
    }


    .cart-item-stock {
        align-items: flex-start;
    }


    .cart-item-actions {
        grid-template-columns: 1fr;
    }


    .cart-quantity {
        justify-self: start;
    }


    .cart-item-links {
        justify-content: flex-start;

        flex-wrap: wrap;
    }


    .cart-summary-box {
        padding: 22px 18px;
    }


    .cart-promo-form {
        grid-template-columns: 1fr;
    }


    .cart-promo-form button {
        min-height: 40px;
    }


    .cart-estimated-total strong {
        font-size: 23px;
    }


    .cart-footer-container {
        grid-template-columns: 1fr;
    }


    .cart-footer-brand {
        grid-column: auto;
    }

}