/* Cart Page Styles */

.cart-page-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.cart-container {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Title */
.cart-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.cart-page-title h1 {
    width: 120px;
    height: 33px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 27.2032px;
    line-height: 33px;
    color: #1B5A9B;
    margin: 0;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.cart-page-title svg {
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Main Content Layout */
.cart-main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-left-section {
    flex: 1;
    min-width: 70%;
}

.cart-right-section {
    width: 412px;
    flex-shrink: 0;
}

/* Cart Items Section */
.cart-items-section {
    margin-bottom: 40px;
}

/* Individual Cart Item Container */
.cart-item-container {
    position: relative;
    width: 1012px;
    height: 193px;
    background: #FFFFFF;
    border-radius: 11.9763px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Product Image */
.cart-item-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Product Details */
.cart-item-details {
    flex: 1;
    padding-left: 30px;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 25.7496px;
    line-height: 31px;
    color: #1B5A9B;
    margin-bottom: 12px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-payment-info {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15.8209px;
    line-height: 19px;
    color: #8B8B8B;
}

/* Quantity Controls */
.cart-item-quantity {
    position: relative;
    width: 88.18px;
    height: 89px;
    margin-right: 40px;
}

.quantity-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 21.21px;
    line-height: 26px;
    color: #9A9A9A;
    margin-bottom: 14px;
    text-align: center;
}

.quantity-controls {
    position: relative;
    width: 100%;
}

.quantity-input-wrapper {
    position: relative;
}

.quantity-input-wrapper input[type="number"] {
    box-sizing: border-box;
    width: 52.1px;
    height: 55px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 6px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    color: #1B5A9B;
    -moz-appearance: textfield;
}

.quantity-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.quantity-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-buttons {
    display: flex;
}

.quantity-btn {
    position: relative;
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-minus {

}

.quantity-plus {
}

.quantity-btn svg {
    width: 9px;
    height: 16px;
}

/* Product Price */
.cart-item-price {
    text-align: right;
    width: 152.41px;
}

.price-main {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 25.5365px;
    line-height: 31px;
    color: #1B5A9B;
    margin-bottom: 8px;
}

.price-savings {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14.1965px;
    line-height: 17px;
    text-align: right;
    color: #1B5A9B;
    margin-bottom: 6px;
}

.price-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14.7736px;
    line-height: 18px;
    color: #9A9A9A;
}

/* Remove Item */
.cart-item-remove {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cart-item-remove .remove {
    color: #ccc;
    font-size: 24px;
    text-decoration: none;
    font-weight: normal;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove .remove:hover {
    color: #ff4444;
}

/* Coupon Section */
.coupon-section {
    margin-bottom: 40px;
}

.coupon-container {
    width: 651px;
    height: 59px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.coupon-input-wrapper {
    flex: 1;
    position: relative;
}

.coupon-input {
    box-sizing: border-box;
    width: 422px;
    height: 59px;
    background: #FBFBFB;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13.1533px;
    line-height: 16px;
    color: #9A9A9A;
}

.coupon-input::placeholder {
    color: #9A9A9A;
}

.coupon-apply-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7.40741px;
    gap: 7.41px;
    width: 209px;
    height: 59px;
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
}

/* Right Section Styles */

/* Order Summary */
.order-summary {
    width: 412px;
    height: 355px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-summary h3 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: #1B5A9B;
    margin-bottom: 25px;
}

.order-summary-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #666;
}

.summary-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1B5A9B;
}

.total-row {
    border-top: 2px solid #1B5A9B;
    padding-top: 15px;
    margin-top: 10px;
}

.total-row .summary-label,
.total-row .summary-value {
    font-size: 20px;
    font-weight: 700;
}

/* Shipping Calculator */
.shipping-calculator {
    width: 412px;
    height: auto;
    min-height: 322px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shipping-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    gap: 4px;
    margin-bottom: 25px;
}

.shipping-header h3 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24.0707px;
    line-height: 29px;
    color: #1B5A9B;
    margin: 0;
}

.shipping-header svg {
    width: 18px;
    height: 21px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.cep-input-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.cep-input-wrapper {
    flex: 1;
}

.cep-input {
    width: 340px;
    height: 61px;
    background: #F9F9F9;
    border-radius: 6px;
    border: none;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14.7736px;
    line-height: 18px;
    color: #9A9A9A;
}

.cep-input::placeholder {
    color: #9A9A9A;
}

.cep-calculate-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7.40741px;
    gap: 7.41px;
    width: 140px;
    height: 34px;
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 11.1111px;
    line-height: 13px;
    color: #FFFFFF;
}

.shipping-results {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    max-height: 200px;
    overflow-y: auto;
}

/* Checkout Actions */
.checkout-actions {
    width: 412px;
    height: 188px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7.40741px;
    gap: 7.41px;
    width: 284px;
    height: 42px;
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

.checkout-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #FFFFFF;
}

.continue-shopping-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7.40741px;
    gap: 7.41px;
    width: 284px;
    height: 42px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #A2A2A2;
    transition: all 0.2s ease;
}

.continue-shopping-button:hover {
    border-color: #1B5A9B;
    color: #1B5A9B;
    text-decoration: none;
}

/* ===============================
   MOBILE RESPONSIVE STYLES
   Base design: 3072×1920 (Desktop)
   =============================== */

/* Large Desktop */
@media screen and (max-width: 1920px) {
    .cart-container {
        max-width: 1200px;
    }
    
    .cart-item-container {
        width: 100%;
        max-width: 800px;
    }
    
    .coupon-container {
        width: 100%;
        max-width: 500px;
    }
    
    .coupon-input {
        width: 100%;
        max-width: 320px;
    }
}

/* Desktop */
@media screen and (max-width: 1440px) {
    .cart-container {
        max-width: 1000px;
    }
    
    .cart-page-title h1 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .cart-item-container {
        height: 160px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 22px;
        line-height: 28px;
    }
    
    .product-payment-info {
        font-size: 14px;
        line-height: 17px;
    }
    
    .cart-right-section {
        width: 350px;
    }
    
    .order-summary,
    .shipping-calculator,
    .checkout-actions {
        width: 350px;
    }
    
    .cep-input {
        width: 280px;
    }
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .cart-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .cart-main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .cart-left-section {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .cart-right-section {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cart-item-container {
        width: 100%;
        height: auto;
        min-height: 140px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 250px;
        padding-left: 0;
    }
    
    .cart-item-quantity {
        width: auto;
        height: auto;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cart-item-price {
        width: auto;
        text-align: left;
    }
    
    .order-summary,
    .shipping-calculator,
    .checkout-actions {
        width: 100%;
        height: auto;
    }
    
    .coupon-container {
        width: 100%;
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .coupon-input {
        width: 100%;
        max-width: none;
    }
    
    .coupon-apply-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Large */
@media screen and (max-width: 768px) {
    .cart-page-wrapper {
        padding: 20px 0;
    }
    
    .cart-page-title {
        margin-bottom: 25px;
    }
    
    .cart-page-title h1 {
        font-size: 20px;
        line-height: 26px;
        width: auto;
    }
    
    .cart-item-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        height: auto;
        min-height: 200px;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .cart-item-details {
        min-width: auto;
        width: 100%;
        margin: 15px 0;
    }
    
    .product-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    
    .product-payment-info {
        font-size: 12px;
        line-height: 15px;
    }
    
    .cart-item-quantity {
        margin: 15px 0;
    }
    
    .quantity-label {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .quantity-input-wrapper input[type="number"] {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .cart-item-price {
        margin-top: 15px;
        text-align: center;
    }
    
    .price-main {
        font-size: 20px;
        line-height: 26px;
    }
    
    .cart-item-remove {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
    
    .order-summary h3,
    .shipping-header h3 {
        font-size: 20px;
        line-height: 25px;
    }
    
    .checkout-button,
    .continue-shopping-button {
        width: 100%;
        max-width: 300px;
    }
    
    .cep-input-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .cep-input {
        width: 100%;
    }
    
    .cep-calculate-btn {
        width: 100%;
        max-width: 200px;
        height: 45px;
        font-size: 14px;
    }
}

/* Mobile Medium */
@media screen and (max-width: 480px) {
    .cart-container {
        padding: 0 10px;
    }
    
    .cart-page-title h1 {
        font-size: 18px;
        line-height: 24px;
    }
    
    .cart-item-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .product-title {
        font-size: 16px;
        line-height: 22px;
    }
    
    .product-payment-info {
        font-size: 11px;
        line-height: 14px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-input-wrapper input[type="number"] {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .price-main {
        font-size: 18px;
        line-height: 24px;
    }
    
    .order-summary,
    .shipping-calculator,
    .checkout-actions {
        padding: 20px;
    }
    
    .order-summary h3,
    .shipping-header h3 {
        font-size: 18px;
        line-height: 23px;
    }
    
    .summary-label,
    .summary-value {
        font-size: 14px;
    }
    
    .total-row .summary-label,
    .total-row .summary-value {
        font-size: 16px;
    }
    
    .checkout-button,
    .continue-shopping-button {
        font-size: 14px;
        height: 45px;
    }
    
    .coupon-input {
        height: 50px;
        font-size: 14px;
    }
    
    .coupon-apply-btn {
        height: 50px;
        font-size: 14px;
    }
}

/* Mobile Small */
@media screen and (max-width: 320px) {
    .cart-page-title h1 {
        font-size: 16px;
        line-height: 20px;
    }
    
    .cart-item-container {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
        line-height: 18px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .quantity-input-wrapper input[type="number"] {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .price-main {
        font-size: 16px;
        line-height: 20px;
    }
    
    .order-summary,
    .shipping-calculator,
    .checkout-actions {
        padding: 15px;
    }
    
    .checkout-button,
    .continue-shopping-button {
        font-size: 12px;
        height: 40px;
    }
}

/* Landscape Mobile Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .cart-page-wrapper {
        padding: 15px 0;
    }
    
    .cart-item-container {
        flex-direction: row;
        height: auto;
        min-height: 120px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details {
        padding-left: 15px;
        text-align: left;
    }
    
    .cart-item-quantity {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}