@charset "utf-8";
/* Cart-specific styles based on common.css patterns */

/* === Cart Page Layout === */
.fs-l-pageMain {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.fs-c-heading--page {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #00b300;
}

/* === Cart Content Layout === */
.fs-l-cart__contentsArea {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.fs-l-cart__mainColumn {
    flex: 1;
    min-width: 0;
}

.fs-l-cart__sideColumn {
    flex: 0 0 300px;
    min-width: 300px;
}

/* === Cart Table Styles === */
.fs-c-cartTableContainer {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.fs-c-cartTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fs-c-cartTable__headerCell {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    font-weight: bold;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 2px solid #00b300;
    font-size: 14px;
}

.fs-c-cartTable__headerCell--product {
    width: 50%;
}

.fs-c-cartTable__headerCell--quantity {
    width: 15%;
    text-align: center;
}

.fs-c-cartTable__headerCell--subtotal {
    width: 20%;
    text-align: right;
}

.fs-c-cartTable__headerCell--action {
    width: 15%;
    text-align: center;
}

.fs-c-cartTable__row {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.fs-c-cartTable__row:hover {
    background-color: #f8f9fa;
}

.fs-c-cartTable__dataCell {
    padding: 15px 10px;
    vertical-align: middle;
}

/* === Product Display in Cart === */
.fs-c-cartTable__product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fs-c-cartTable__productImage {
    flex: 0 0 80px;
}

.fs-c-cartTable__productImage__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.fs-c-cartTable__productInfo {
    flex: 1;
    min-width: 0;
}

.fs-c-cartTable__productName {
    margin-bottom: 8px;
}

.fs-c-cartTable__productName__name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.fs-c-cartTable__productName__name a:hover {
    color: #00b300;
    text-decoration: underline;
}

.fs-c-cartTable__unitPrice {
    font-size: 14px;
    color: #666;
}

.fs-c-price {
    font-weight: bold;
    color: #333;
}

.fs-c-price__currencyMark {
    font-size: 0.9em;
    margin-right: 2px;
}

.fs-c-price__value {
    font-size: 1.1em;
}

.fs-c-productPrice__addon {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}

/* === Quantity Input === */
.fs-c-cartTable__dataCell--quantity {
    text-align: center;
}

.fs-c-cartTable__quantity {
    display: flex;
    justify-content: center;
}

.fs-c-cartTable__quantity .textfield {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.fs-c-cartTable__quantity .textfield:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 2px rgba(0, 179, 0, 0.2);
}

/* === Subtotal === */
.fs-c-cartTable__dataCell--subtotal {
    text-align: right;
    font-weight: bold;
}

.fs-c-cartTable__price {
    font-size: 16px;
    color: #333;
}

/* === Remove Button === */
.fs-c-cartTable__dataCell--action {
    text-align: center;
}

.fs-c-cartTable__actionButton {
    display: flex;
    justify-content: center;
}

.fs-c-button--cancel--cart {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-c-button--cancel--cart:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
}

/* === Order Total Section === */
.fs-c-totalAndActions {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.fs-c-orderTotalTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fs-c-orderTotalTable tr {
    border-bottom: 1px solid #eee;
}

.fs-c-orderTotalTable th {
    text-align: left;
    padding: 12px 0;
    font-weight: normal;
    color: #666;
}

.fs-c-orderTotalTable td {
    text-align: right;
    padding: 12px 0;
    font-weight: bold;
    color: #333;
}

.fs-c-orderTotalTable__mainRow {
    border-bottom: 2px solid #00b300;
}

.fs-c-orderTotalTable__mainRow th,
.fs-c-orderTotalTable__mainRow td {
    font-size: 18px;
    padding: 15px 0;
    font-weight: bold;
    color: #333;
}

.fs-c-orderTotalTable__mainRow .fs-c-price__value {
    font-size: 24px;
    color: #00b300;
}

/* === Checkout Button === */
.fs-c-purchaseHere {
    margin-bottom: 20px;
}

.fs-c-purchaseHere__message {
    margin-bottom: 15px;
    text-align: center;
    color: #666;
}

.fs-c-cartPayment__button {
    width: 100%;
}

.fs-c-button--unregisteredUserPurchase {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
}

.fs-c-button--unregisteredUserPurchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    background: linear-gradient(135deg, #00d900 0%, #00b300 100%);
    color: white;
    text-decoration: none;
}

/* === Apple Pay Button === */
.fs-c-applePay {
    margin-bottom: 20px;
}

.fs-c-button--ApplePay {
    display: block;
    width: 100%;
    height: 50px;
    background: #000;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.fs-c-button--ApplePay:hover {
    background: #333;
}

/* === Continue Shopping Button === */
.fs-c-continueShopping {
    margin-top: 30px;
    text-align: center;
}

.fs-c-button--continueShopping {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #00b300;
    border: 2px solid #00b300;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fs-c-button--continueShopping:hover {
    background: #00b300;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* === Empty Cart Message === */
.fs-c-cartTable tbody tr td[colspan] {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
}

/* === Empty Cart Animation === */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.empty-cart-message .icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.empty-cart-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.empty-cart-message .continue-shopping-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.empty-cart-message .continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .fs-l-pageMain {
        padding: 15px;
    }

    .fs-c-heading--page {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .fs-l-cart__contentsArea {
        flex-direction: column;
        gap: 20px;
    }

    .fs-l-cart__sideColumn {
        flex: 1;
        min-width: 0;
        position: static;
    }

    .fs-c-cartTable__product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .fs-c-cartTable__productImage {
        flex: 0 0 60px;
    }

    .fs-c-cartTable__productImage__image {
        width: 60px;
        height: 60px;
    }

    .fs-c-cartTable__headerCell,
    .fs-c-cartTable__dataCell {
        padding: 10px 5px;
        font-size: 12px;
    }

    .fs-c-cartTable__headerCell--product,
    .fs-c-cartTable__headerCell--quantity,
    .fs-c-cartTable__headerCell--subtotal,
    .fs-c-cartTable__headerCell--action {
        width: auto;
    }

    .fs-c-cartTable__quantity .textfield {
        width: 50px;
        padding: 6px;
    }

    .fs-c-totalAndActions {
        position: static;
        margin-top: 20px;
    }

    .fs-c-orderTotalTable__mainRow th,
    .fs-c-orderTotalTable__mainRow td {
        font-size: 16px;
    }

    .fs-c-orderTotalTable__mainRow .fs-c-price__value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fs-c-cartTable {
        font-size: 12px;
    }

    .fs-c-cartTable__headerCell {
        display: none;
    }

    .fs-c-cartTable__row {
        display: block;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
    }

    .fs-c-cartTable__dataCell {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .fs-c-cartTable__dataCell:last-child {
        border-bottom: none;
    }

    .fs-c-cartTable__dataCell:before {
        content: attr(data-cell-label) ": ";
        font-weight: bold;
        color: #666;
    }

    .fs-c-cartTable__dataCell--quantity:before {
        content: "数量: ";
    }

    .fs-c-cartTable__dataCell--subtotal:before {
        content: "小計: ";
    }

    .fs-c-cartTable__dataCell--subtotal {
        text-align: left;
    }

    .fs-c-cartTable__dataCell--action {
        text-align: left;
    }

    .fs-c-cartTable__actionButton {
        justify-content: flex-start;
    }

    .fs-c-button--unregisteredUserPurchase {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* === Animation for cart updates === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fs-c-cartTable__row {
    animation: fadeIn 0.3s ease;
}

/* === Loading states === */
.fs-c-cartTable__quantity .textfield:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fs-c-button--cancel--cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fs-c-button--cancel--cart:disabled:hover {
    background: #fff;
    color: #dc3545;
    transform: none;
}
