/* Cart Page Styles */
.cart-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Top Navigation Bar */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item {
    padding: 10px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #5D5D5D;
    text-decoration: none;
}

.breadcrumb-item.active {
    font-size: 16px;
    font-weight: 700;
    color: #080808;
}

.cart-page-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
    flex: 1;
    text-align: center;
}

.btn-continue-shopping-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.10);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-continue-shopping-top:hover {
    background: #f9f9f9;
    color: #000;
    border-color: rgba(0, 0, 0, 0.20);
}

.cart-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    margin-bottom: 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

.cart-empty .btn-continue,
.btn-continue {
    background: #e01d47;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.cart-empty .btn-continue:hover,
.btn-continue:hover {
    background: #c01a3e;
    color: #fff;
}

.cart-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-left {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    width: 100%;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

/* Desktop/Mobile Toggle */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }
}

/* Desktop Header Row */
.cart-items-header-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-header-cell {
    padding: 20px;
    background: #F6F6F6;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cart-header-cell:nth-child(1) {
    flex: 2;
}

.cart-header-cell:nth-child(2),
.cart-header-cell:nth-child(3),
.cart-header-cell:nth-child(4) {
    flex: 1;
}

.header-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
}

/* Desktop Item Row */
.cart-item-row {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.cart-cell {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cart-cell-product {
    flex: 2;
    justify-content: flex-start;
    gap: 20px;
}

.cart-cell-product img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-cell-price,
.cart-cell-quantity,
.cart-cell-total {
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.cart-cell-total {
    gap: 20px;
    flex-direction: row;
}

/* Mobile Layout */
.cart-item-mobile {
    flex-direction: column;
}

.mobile-item-card {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mobile-item-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}

.mobile-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-item-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.70);
    line-height: 16px;
    letter-spacing: 0.20px;
}

.mobile-item-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 24px;
}

.mobile-item-size {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.70);
    line-height: 16px;
    letter-spacing: 0.20px;
}

.mobile-item-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-pricing-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-pricing-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    line-height: 18px;
}

.mobile-pricing-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    line-height: 18px;
}

.mobile-pricing-total {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #BD1F3F;
    line-height: 24px;
}

.mobile-pricing-divider {
    width: 0.75px;
    height: 8px;
    background: rgba(0, 0, 0, 0.10);
}

.mobile-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-qty-control {
    padding: 8px;
    gap: 10px;
}

.mobile-remove-btn {
    font-size: 12px;
    line-height: 18px;
}

.mobile-section {
    display: flex;
    flex-direction: column;
}

.mobile-header {
    padding: 20px;
    background: #F6F6F6;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
}

.mobile-content {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-content img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mobile-price,
.mobile-total {
    flex-direction: column;
}

.mobile-total {
    flex-direction: row;
    justify-content: center;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.70);
    line-height: 18px;
    letter-spacing: 0.20px;
}

.cart-item-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 24px;
    align-self: stretch;
}

.cart-item-size {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.70);
    line-height: 18px;
    letter-spacing: 0.20px;
}

.price-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #000;
    line-height: 26px;
    text-align: center;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 6px;
}

.qty-btn {
    width: 8px;
    height: 8px;
    border: none;
    background: #BD1F3F;
    color: #BD1F3F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
    font-size: 0;
}

.qty-btn.minus {
    height: 2px;
}

.qty-btn.plus {
    width: auto;
    height: auto;
    background: transparent;
}

.qty-btn:hover {
    opacity: 0.7;
}

.qty-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #000;
    line-height: 26px;
    min-width: 20px;
    text-align: center;
}

.total-price {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #BD1F3F;
    line-height: 28px;
    text-align: center;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.70);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.remove-btn i {
    opacity: 0.80;
    font-size: 16px;
}

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

/* Order Note Section */
.cart-note-section {
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 20px;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.note-header h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.note-header i {
    color: rgba(0, 0, 0, 0.50);
    font-size: 18px;
}

.note-textarea {
    width: 100%;
    min-height: 155px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #000;
    resize: vertical;
    box-shadow: 0px 2px 6px rgba(16, 24, 40, 0.06);
}

.note-textarea::placeholder {
    color: rgba(0, 0, 0, 0.40);
}

/* Cart Summary Sidebar */
.cart-summary {
    width: 400px;
    min-width: 400px;
    padding: 40px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.summary-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.summary-value.highlight {
    font-size: 28px;
    font-weight: 700;
    color: #BD1F3F;
}

.summary-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-checkout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 20px;
    background: #BD1F3F;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-checkout:hover {
    background: #9e1a35;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border: 3px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, 0.20);
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.payment-methods-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.cart-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cart-alert.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.cart-alert.alert-success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .cart-content {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-page-title {
        order: -1;
        text-align: left;
        width: 100%;
    }

    .cart-breadcrumb {
        order: -2;
        width: 100%;
    }

    .btn-continue-shopping-top {
        order: -3;
        align-self: flex-end;
    }

    .cart-note-section {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}

/* Cart Related Products Slider */
.cart-related-products-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.cart-related-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
}

.cart-related-slider {
    margin: 0;
}

.cart-related-slide {
    padding: 0 10px;
}

.cart-related-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cart-related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-related-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 48px;
}

.cart-related-info {
    padding: 15px;
    background: #fff;
}

.cart-related-price {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #BD1F3F;
    margin-bottom: 8px;
}

.cart-related-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

/* Slick slider customization for cart related products */
.cart-related-slider .slick-track {
    display: flex;
    gap: 0;
}

.cart-related-slider .slick-slide {
    height: auto;
    display: flex;
}

.cart-related-slider .slick-slide>div {
    width: 100%;
    height: 100%;
}

.cart-related-slider .slick-prev,
.cart-related-slider .slick-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.cart-related-slider .slick-prev:hover,
.cart-related-slider .slick-next:hover {
    background: #BD1F3F;
}

.cart-related-slider .slick-prev:hover:before,
.cart-related-slider .slick-next:hover:before {
    color: #fff;
}

.cart-related-slider .slick-prev {
    left: -20px;
}

.cart-related-slider .slick-next {
    right: -20px;
}

.cart-related-slider .slick-prev:before,
.cart-related-slider .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #333;
    font-size: 16px;
}

.cart-related-slider .slick-prev:before {
    content: '\f053';
}

.cart-related-slider .slick-next:before {
    content: '\f054';
}

/* .cart-related-slider .slick-dots {
    bottom: -40px;
}

.cart-related-slider .slick-dots li button:before {
    font-size: 10px;
    color: #BD1F3F;
}

.cart-related-slider .slick-dots li.slick-active button:before {
    color: #BD1F3F;
} */
/* Slick dots for related products */
.cart-related-slider .slick-dots {
    bottom: -40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.cart-related-slider .slick-dots li {
    width: 6px;
    height: 6px;
    margin: 0;
}

.cart-related-slider .slick-dots li button {
    width: 6px;
    height: 6px;
    padding: 0;
}

.cart-related-slider .slick-dots li button:before {
    content: '';
    width: 6px;
    height: 6px;
    background: black;
    opacity: 0.3;
    border-radius: 50%;
}

.cart-related-slider .slick-dots li.slick-active button:before {
    opacity: 1;
}

@media (max-width: 768px) {
    .cart-related-products-section {
        padding: 20px;
        margin-top: 20px;
    }

    .cart-related-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .cart-related-image {
        height: 150px;
    }

    .cart-related-slider .slick-prev {
        left: -10px;
    }

    .cart-related-slider .slick-next {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .cart-related-products-section {
        padding: 15px;
    }

    .cart-related-title {
        font-size: 20px;
    }

    .cart-related-image {
        height: 120px;
    }

    .cart-related-info {
        padding: 12px;
    }

    .cart-related-price {
        font-size: 16px;
    }

    .cart-related-name {
        font-size: 13px;
    }
}