/* ===== SHOPPING BAG PAGE V2 STYLES ===== */

.bag-page-new {
    background: #ffffff;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    padding-top: 220px;
    /* Offset for fixed header */
}

@media (max-width: 768px) {
    .bag-page-new {
        padding-top: 160px;
    }
}

.bag-container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Progress Tracker */
.cart-progress {
    margin-bottom: 60px;
    padding-top: 50px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Author', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.progress-labels .step.active {
    color: #111;
}

.progress-labels .step {
    color: #b0b0b0;
}

.progress-track {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8px;
}

.progress-track .node {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    z-index: 2;
}

.progress-track .node.active {
    border: 2px solid #111;
    background: #ffffff;
    margin-right: 5px;
}

.progress-track .line {
    flex: 1;
    height: 1px;
    background: #ccc;
    margin: 0 -2px;
    z-index: 1;
    position: relative;
}

.progress-track .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #111;
}

/* Active Progress Logic */
.cart-progress.step-1 .progress-track .line::after {
    width: 50%;
}

.cart-progress.step-2 .progress-track .line::after {
    width: 100%;
}

/* Mobile Redesign - Exactly as in the screenshot */
@media (max-width: 768px) {
    .cart-progress {
        margin-bottom: 60px;
        padding-top: 40px;
        position: relative;
        overflow: hidden;
        /* Ensure line doesn't cause overflow */
    }

    .progress-labels {
        display: block;
        height: 30px;
        margin-bottom: 10px;
        position: relative;
    }

    .progress-labels .step {
        display: none;
        /* Hide by default */
    }

    .progress-labels .step.active {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-family: 'Author', sans-serif;
        font-size: 19px;
        font-weight: 500;
        color: #000;
        white-space: nowrap;
    }

    .progress-track {
        display: flex;
        align-items: center;
        padding: 0;
        justify-content: flex-start;
        padding-left: 50%;
        transform: translateX(-10px);
        /* Half of 20px node */
    }

    .progress-track .node {
        width: 20px;
        height: 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        flex-shrink: 0;
        z-index: 2;
    }

    .progress-track .node.active {
        border: 2.5px solid #000;
        background: #ffffff;
        margin-right: 5px;
    }

    /* Hide second node to match screenshot exactly */
    .progress-track .node:nth-child(3) {
        display: none;
    }

    .progress-track .line {
        height: 1px;
        background: #ccc;
        width: 100vw;
        /* Line extends to the right as in pic */
        margin: 0;
        z-index: 1;
    }

    .progress-track .line::after {
        display: none;
    }
}

/* Cart Items */
.cart-list {
    display: flex;
    flex-direction: column;
}

.cart-item-row {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    position: relative;
}

.cart-item-row:last-child {
    border-bottom: 1px solid #e8e8e8;
}

.cart-item-image-box {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f9f9f9;
    background-color: white;
    padding: 10px;
}

.cart-item-img-placeholder-v2 {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
    overflow: hidden;
}

.cart-item-img-placeholder-v2 .image-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.cart-item-img-placeholder-v2 .image-track img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Inner Slider Arrows */
.inner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image-box:hover .inner-arrow {
    opacity: 1;
}

.inner-arrow.prev {
    left: 10px;
}

.inner-arrow.next {
    right: 10px;
}

.inner-arrow:hover,
.inner-arrow:active {
    background: #111 !important;
}

.inner-arrow:hover img,
.inner-arrow:active img {
    filter: brightness(0) invert(1);
}

.item-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.item-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d8d8d8;
    cursor: pointer;
}

.item-dots .dot.active {
    background: #999;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.details-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-name {
    font-family: 'Author', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.item-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #666;
}

.details-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Remove Buttons */
.btn-remove {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    color: #999;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
}

.btn-remove:hover {
    color: #333;
}

.btn-remove-mobile {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 640px) {
    .cart-item-row .details-bottom {
        display: none;
        /* Hide the row containing text "REMOVE" */
    }

    .btn-remove-mobile {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        color: #999;
        line-height: 1;
        z-index: 10;
        padding: 5px;
    }

    .btn-remove-mobile:active {
        color: #111;
    }
}

/* Subtotal Block */
.subtotal-block {
    background: #faf9f7;
    width: 100%;
    margin-top: 0;
}

.subtotal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subtotal-label {
    font-family: 'Author', sans-serif;
    font-size: 18px;
    color: #333;
}

.subtotal-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* Action Buttons */
.cart-actions-block {
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-checkout-new,
.btn-expert-new {
    padding: 18px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    transition: all 0.3s;
    min-width: 240px;
}

.btn-checkout-new {
    background: #191c18;
    color: #fff;
    border: 1px solid #191c18;
}

.btn-checkout-new:hover {
    background: #fff;
    color: #191c18;
    border-color: #191c18;
    color: #191c18;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 155, 91, 0.2);
}

.btn-expert-new {
    background: #fff;
    color: #333;
    border: 1px solid #777;
}

.btn-expert-new:hover {
    background: #191c18;
    color: #fff;
    border-color: #191c18;
    transform: translateY(-2px);
}

.btn-expert-new:hover img {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 640px) {
    .bag-container-new {
        padding: 0 20px;
    }

    .subtotal-container {
        padding: 30px 20px;
    }

    .cart-item-row {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }

    .cart-item-image-box {
        margin: 0 auto;
    }

    .details-top {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .details-bottom {
        justify-content: center;
    }

    .cart-actions-block {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn-checkout-new,
    .btn-expert-new {
        width: 100%;
        min-width: auto;
    }
}

/* --------------------------------- */
/* Shipping & Returns */
.shipping-returns {
    padding: 40px 8% 50px;
    background-color: white;
    text-align: center;
}

.section-title {
    font-family: 'Vonca', serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 5rem;
    letter-spacing: 2px;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.shipping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.5rem;
}

.shipping-item img {
    width: 93px;
    height: 51px;
    margin-bottom: 20px;
}

.shipping-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 494;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.shipping-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: black;
    line-height: 1.5;
}

/* Shipping Section Mobile Redesign */
@media (max-width: 991px) {
    .shipping-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .shipping-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
        padding-bottom: 0;
    }

    .shipping-item img {
        width: 25px;
        height: auto;
        margin-top: 5px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .shipping-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .shipping-text h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.25rem;
        font-weight: 494;
        margin-bottom: 0;
        letter-spacing: 0;
        text-transform: none;
        color: #000;
    }

    .shipping-text p {
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        color: #777;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

/* ULTIMATE Scoped Header Fix for Shopping Bag Page ONLY - High Specificity Overkill */
@media (max-width: 991px) {

    /* Level 1: Force solid white background on the entire header */
    html body.shopping-bag-page .header,
    html body.shopping-bag-page .header.scrolled,
    html body.shopping-bag-page .header-top,
    html body.shopping-bag-page .header.scrolled .header-top,
    html body.shopping-bag-page .nav-container,
    html body.shopping-bag-page .header.scrolled .nav-container {
        background-color: #FFFFFF !important;
        background: #FFFFFF !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    /* Level 2: Force ALL icons and images (including Home and Logo) to be solid BLACK */
    html body.shopping-bag-page .header .nav-icon,
    html body.shopping-bag-page .header .logo,
    html body.shopping-bag-page .header img,
    html body.shopping-bag-page .header.scrolled .header-top .nav-icon,
    html body.shopping-bag-page .header.scrolled .nav-container .nav-icon,
    html body.shopping-bag-page .nav-links img.mobile-only {
        filter: brightness(0) !important;
        -webkit-filter: brightness(0) !important;
        opacity: 1 !important;
    }

    /* Level 3: Force all text, links, and buttons to be solid BLACK */
    html body.shopping-bag-page .header a,
    html body.shopping-bag-page .header button,
    html body.shopping-bag-page .header .nav-links a,
    html body.shopping-bag-page .header .hamburger-btn,
    html body.shopping-bag-page .header .mobile-search-btn {
        color: #000000 !important;
        opacity: 1 !important;
    }

    /* Level 4: Force all underlines to be solid BLACK */
    html body.shopping-bag-page .header .nav-links a::after {
        background-color: #000000 !important;
        background: #000000 !important;
        opacity: 1 !important;
    }
}