/* =========================================
   DEBDIPA'S HEALING MANTRA
   CART PAGE
========================================= */

:root {
    --cream: #FCF9F0;
    --cream-light: #F7F2E5;
    --green-dark: #263F35;
    --green: #536B55;
    --green-light: #AAB89B;
    --gold: #C9A85C;
    --gold-light: #E4D39D;
    --text: #263F35;
    --muted: #536B55;
    --white-glass: rgba(255, 255, 255, 0.62);
    --border: rgba(38, 63, 53, 0.18);
    --shadow: 0 14px 35px rgba(42, 62, 47, 0.12);
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;



    color: var(--text);

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================================
   DECORATIVE BACKGROUND
========================================= */

.leaf {

    position: fixed;

    font-size: 130px;

    opacity: 0.06;

    pointer-events: none;

    filter: blur(1px);

    z-index: 0;
}

.leaf-1 {

    left: -30px;

    top: 25%;

    transform: rotate(-25deg);
}

.leaf-2 {

    right: -20px;

    bottom: 10%;

    transform: rotate(30deg);
}


/* =========================================
   NAVBAR
========================================= */

.cart-navbar {

    position: sticky;

    top: 18px;

    z-index: 50;

    width: calc(100% - 50px);

    max-width: 1400px;

    margin: 18px auto;

    padding: 12px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background:
        rgba(255, 255, 255, 0.62);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, 0.8);

    border-radius: 50px;

    box-shadow:
        0 8px 30px rgba(40, 60, 45, 0.12);
}


/* BRAND */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: var(--green-dark);

    min-width: 210px;
}

.brand-icon {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    background:
        rgba(255, 255, 255, 0.7);

    border-radius: 50%;
}

.brand div:last-child {

    display: flex;

    flex-direction: column;

    line-height: 1.05;
}

.brand strong {

    font-family: Georgia, serif;

    font-size: 17px;
}

.brand span {

    font-family: Georgia, serif;

    font-size: 15px;
}


/* NAV LINKS */

.cart-navbar nav {

    display: flex;

    align-items: center;

    gap: 32px;
}

.cart-navbar nav a {

    text-decoration: none;

    color: var(--text);

    font-size: 14px;

    position: relative;

    transition: 0.3s ease;
}

.cart-navbar nav a:hover {

    color: var(--green);
}

.cart-navbar nav a::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -7px;

    width: 0;

    height: 2px;

    background: var(--gold);

    transform: translateX(-50%);

    transition: 0.3s ease;
}

.cart-navbar nav a:hover::after {

    width: 22px;
}


/* NAV ICONS */

.nav-icons {

    display: flex;

    align-items: center;

    gap: 15px;
}

.nav-icons button,
.nav-icons a {

    border: none;

    background: transparent;

    text-decoration: none;

    color: var(--green-dark);

    font-size: 21px;

    cursor: pointer;

    position: relative;

    transition: 0.3s;
}

.nav-icons button:hover,
.nav-icons a:hover {

    transform: translateY(-2px);
}


/* CART COUNT */

.cart-icon span {

    position: absolute;

    right: -8px;

    top: -7px;

    width: 17px;
    height: 17px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-size: 9px;
}


/* =========================================
   MAIN
========================================= */

.cart-page {

    width: min(1200px, 92%);

    margin: 70px auto 100px;

    position: relative;

    z-index: 2;
}


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

.cart-heading {

    text-align: center;

    margin-bottom: 55px;
}

.small-title {

    color: var(--green);

    font-size: 12px;

    letter-spacing: 3px;

    font-weight: 600;

    margin-bottom: 10px;
}

.cart-heading h1 {

    font-family: Georgia, serif;

    font-size: clamp(42px, 5vw, 68px);

    color: var(--green-dark);

    font-weight: 500;
}

.heading-line {

    width: 60px;

    height: 3px;

    background: var(--gold);

    margin: 15px auto;

    border-radius: 20px;
}

.cart-heading p:last-child {

    max-width: 600px;

    margin: auto;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================
   CART LAYOUT
========================================= */

.cart-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr) minmax(320px, 0.9fr);

    gap: 35px;

    align-items: start;
}


/* =========================================
   CART PRODUCTS
========================================= */

.cart-products {

    background:
        rgba(255, 255, 255, 0.50);

    border:
        1px solid rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(15px);

    border-radius: 30px;

    padding: 28px;

    box-shadow: var(--shadow);
}


.cart-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.cart-top h2 {

    font-family: Georgia, serif;

    font-size: 25px;

    color: var(--green-dark);
}

.cart-top h2 span {

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 400;

    color: var(--muted);

    margin-left: 8px;
}

.clear-btn {

    border: none;

    background: transparent;

    color: #8c5c48;

    cursor: pointer;

    font-size: 12px;

    text-decoration: underline;
}


/* =========================================
   PRODUCT CARD
========================================= */

.cart-item {

    display: grid;

    grid-template-columns: 120px 1fr auto;

    gap: 22px;

    align-items: center;

    padding: 18px;

    margin-bottom: 15px;

    background:
        rgba(255, 255, 255, 0.65);

    border:
        1px solid rgba(49, 92, 71, 0.12);

    border-radius: 22px;

    transition: 0.35s ease;
}

.cart-item:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(40, 70, 50, 0.10);
}


/* PRODUCT IMAGE */

.cart-item-image {

    width: 120px;

    height: 120px;

    border-radius: 18px;

    overflow: hidden;

    background: #e7e1cc;
}

.cart-item-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* PRODUCT INFO */

.cart-item-info h3 {

    font-family: Georgia, serif;

    font-size: 19px;

    color: var(--green-dark);

    margin-bottom: 5px;
}

.cart-item-info p {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    max-width: 350px;
}

.product-price {

    margin-top: 10px;

    font-size: 17px;

    font-weight: 700;

    color: var(--green);
}


/* QUANTITY */

.quantity-box {

    display: flex;

    align-items: center;

    gap: 0;

    margin-top: 15px;

    width: fit-content;

    border:
        1px solid rgba(49, 92, 71, 0.2);

    border-radius: 30px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.7);
}

.quantity-box button {

    width: 32px;

    height: 30px;

    border: none;

    background: transparent;

    cursor: pointer;

    color: var(--green-dark);

    font-size: 17px;
}

.quantity-box span {

    width: 32px;

    text-align: center;

    font-size: 13px;

    font-weight: 600;
}


/* RIGHT */

.cart-item-right {

    text-align: right;
}

.item-total {

    font-size: 18px;

    font-weight: 700;

    color: var(--green-dark);
}

.remove-item {

    margin-top: 15px;

    border: none;

    background: transparent;

    color: #96604c;

    cursor: pointer;

    font-size: 12px;
}


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

.order-summary {

    position: sticky;

    top: 110px;
}


.summary-card {

    background:
        rgba(255, 255, 255, 0.68);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, 0.9);

    border-radius: 30px;

    padding: 28px;

    box-shadow: var(--shadow);
}


/* SUMMARY TITLE */

.summary-title {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(49, 92, 71, 0.13);

    margin-bottom: 20px;
}

.summary-title>span {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    background:
        rgba(49, 92, 71, 0.1);

    border-radius: 50%;
}

.summary-title h2 {

    font-family: Georgia, serif;

    color: var(--green-dark);

    font-size: 22px;
}

.summary-title small {

    color: var(--muted);

    font-size: 11px;
}


/* SUMMARY ROWS */

.summary-row {

    display: flex;

    justify-content: space-between;

    padding: 9px 0;

    color: var(--muted);

    font-size: 14px;
}

.summary-row strong {

    color: var(--text);
}

.discount-row strong {

    color: var(--green);
}


/* DIVIDER */

.summary-divider {

    height: 1px;

    background:
        rgba(49, 92, 71, 0.15);

    margin: 15px 0;
}


/* =========================================
   COUPON
========================================= */

.coupon-box {

    display: flex;

    gap: 8px;

    margin-top: 15px;
}

.coupon-box input {

    flex: 1;

    min-width: 0;

    padding: 12px 14px;

    border:
        1px solid rgba(49, 92, 71, 0.2);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.65);

    outline: none;

    color: var(--text);
}

.coupon-box input:focus {

    border-color: var(--gold);
}

.coupon-box button {
    padding: 0 20px;
    border: 1px solid rgba(201, 168, 92, .65);
    border-radius: 12px;
    background: linear-gradient(135deg, #29483A, #5B765C);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.coupon-message {

    font-size: 11px;

    color: var(--green);

    margin-top: 6px;
}


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

.total-box {

    margin-top: 20px;

    padding: 17px;

    border-radius: 18px;

    background:
        linear-gradient(135deg,
            rgba(49, 92, 71, 0.09),
            rgba(200, 164, 81, 0.08));

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.total-box span {

    font-family: Georgia, serif;

    color: var(--green-dark);

    font-size: 18px;
}

.total-box strong {

    color: var(--green-dark);

    font-size: 23px;
}


/* =========================================
   CHECKOUT BUTTON
========================================= */

.checkout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 15px 20px;
    border: 1px solid rgba(201, 168, 92, .65);
    border-radius: 999px;
    background: linear-gradient(135deg, #29483A, #5B765C);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(38, 63, 53, .18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-btn span {
    margin-left: 8px;
    color: var(--gold-light);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(38, 63, 53, .25);
}


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

.secure-info {

    margin-top: 25px;

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.secure-info>div {

    display: flex;

    align-items: center;

    gap: 12px;
}

.secure-info>div>span {

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    background:
        rgba(200, 164, 81, 0.13);

    border-radius: 50%;

    font-size: 14px;
}

.secure-info strong {

    display: block;

    font-size: 12px;

    color: var(--green-dark);
}

.secure-info small {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 2px;
}


/* =========================================
   EMPTY CART
========================================= */

.empty-cart {

    text-align: center;

    padding: 70px 20px;
}

.empty-icon {

    width: 80px;
    height: 80px;

    display: grid;

    place-items: center;

    margin: auto auto 20px;

    border-radius: 50%;

    background:
        rgba(49, 92, 71, 0.08);

    font-size: 32px;
}

.empty-cart h2 {

    font-family: Georgia, serif;

    color: var(--green-dark);

    margin-bottom: 10px;
}

.empty-cart p {

    max-width: 400px;

    margin: auto auto 25px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.shop-btn {
    display: inline-block;
    padding: 13px 32px;
    border: 1px solid rgba(201, 168, 92, .65);
    border-radius: 999px;
    background: linear-gradient(135deg, #29483A, #5B765C);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(38, 63, 53, .18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-btn:hover {
    background: linear-gradient(135deg, #29483A, #5B765C);
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(38, 63, 53, .25);
}


/* =========================================
   TOAST
========================================= */

#toast {

    position: fixed;

    bottom: 30px;

    left: 50%;

    transform:
        translate(-50%, 100px);

    padding: 13px 22px;

    border-radius: 30px;

    background: var(--green-dark);

    color: white;

    font-size: 13px;

    opacity: 0;

    transition: 0.35s ease;

    z-index: 100;
}

#toast.show {

    transform:
        translate(-50%, 0);

    opacity: 1;
}


/* =========================================
   RESPONSIVE CART LAYOUT
========================================= */

@media (max-width: 992px) {
    .cart-page {
        width: 94%;
        margin: 35px auto 70px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .order-summary {
        position: static;
        width: 100%;
    }

    .cart-products,
    .summary-card {
        padding: 22px 18px;
        border-radius: 24px;
    }
}

@media (max-width: 600px) {
    .cart-page {
        width: 95%;
        margin: 20px auto 50px;
    }

    .cart-heading {
        margin-bottom: 30px;
    }

    .cart-heading h1 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .cart-heading p:last-child {
        font-size: 13.5px;
    }

    .cart-products,
    .summary-card {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .cart-top h2 {
        font-size: 19px;
    }

    .cart-top h2 span {
        display: inline-block;
        margin-left: 6px;
    }

    .cart-item {
        grid-template-columns: 75px 1fr;
        gap: 12px;
        padding: 14px 12px;
        border-radius: 16px;
    }

    .cart-item-image {
        width: 75px;
        height: 75px;
        border-radius: 12px;
    }

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

    .cart-item-info h3 {
        font-size: 15px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cart-item-info p {
        display: none;
    }

    .product-price {
        font-size: 14.5px;
        margin-top: 4px;
    }

    .quantity-box {
        margin-top: 8px;
        height: 32px;
    }

    .quantity-box button {
        width: 30px;
        font-size: 15px;
    }

    .quantity-box span {
        font-size: 13px;
        min-width: 26px;
    }

    .cart-item-right {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px dashed rgba(38, 63, 53, 0.15);
        width: 100%;
    }

    .item-total {
        font-size: 16px;
        font-weight: 700;
    }

    .remove-item {
        font-size: 12px;
        color: #a04030;
    }

    .coupon-box {
        flex-direction: row;
        gap: 8px;
    }

    .coupon-box input {
        min-width: 0;
        font-size: 13px;
    }

    .coupon-box button {
        padding: 0 16px;
        font-size: 13px;
    }

    .checkout-btn {
        min-height: 48px;
        font-size: 15px;
    }
}


/* ============================================================
   ADDITIONAL RESPONSIVE ENHANCEMENTS (appended — desktop safe)
   ============================================================ */

/* Cart Navbar - hide nav links on mobile, fix brand width */
@media (max-width: 768px) {
    .cart-navbar {
        width: calc(100% - 24px) !important;
        padding: 10px 14px !important;
        gap: 12px !important;
    }

    .cart-navbar nav {
        display: none !important;
    }

    .brand {
        min-width: auto !important;
        gap: 8px !important;
    }

    .brand strong {
        font-size: 15px !important;
    }

    .brand span {
        font-size: 13px !important;
    }

    .brand-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .nav-icons button,
    .nav-icons a {
        font-size: 18px !important;
    }

    .cart-heading {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 480px) {
    .cart-navbar {
        width: calc(100% - 16px) !important;
        margin: 10px auto !important;
        padding: 8px 12px !important;
        border-radius: 30px !important;
        top: 10px !important;
    }

    .brand strong {
        font-size: 13px !important;
    }

    .brand span {
        display: none !important;
    }

    .summary-title h2 {
        font-size: 18px !important;
    }

    .total-box {
        padding: 14px !important;
    }

    .total-box span {
        font-size: 15px !important;
    }

    .total-box strong {
        font-size: 19px !important;
    }

    .secure-info > div > span {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .empty-cart {
        padding: 40px 14px !important;
    }

    .empty-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
}

@media (max-width: 375px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .cart-item {
        grid-template-columns: 65px 1fr !important;
        gap: 10px !important;
        padding: 12px 10px !important;
    }

    .cart-item-image {
        width: 65px !important;
        height: 65px !important;
        border-radius: 10px !important;
    }

    .cart-item-info h3 {
        font-size: 13.5px !important;
    }

    .product-price {
        font-size: 13px !important;
    }

    .checkout-btn {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
}