/* カートウィジェット */
.domo-cart-widget {
    margin: 20px 0;
    width: 100%;
}

.domo-cart-widget .cart-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.domo-add-to-cart-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.domo-add-to-cart-btn:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.domo-add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* カートページ */
.domo-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.domo-cart-page h2 {
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.domo-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domo-cart-table th,
.domo-cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.domo-cart-table thead th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.domo-cart-table tbody tr:hover {
    background-color: #f9f9f9;
}

.domo-cart-table tfoot th {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 1.1em;
}

.cart-quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.cart-remove-btn {
    background-color: #dc3232;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cart-remove-btn:hover {
    background-color: #a00;
}

.domo-checkout-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #46b450;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.domo-checkout-btn:hover {
    background-color: #2ea32e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* カートが空の場合 */
.domo-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.domo-cart-empty p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* 通知 */
.domo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.domo-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.domo-notification-success {
    background-color: #46b450;
    color: white;
}

.domo-notification-error {
    background-color: #dc3232;
    color: white;
}

/* カートアイコン（ヘッダー用） */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3232;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .domo-cart-table {
        font-size: 14px;
    }

    .domo-cart-table th,
    .domo-cart-table td {
        padding: 10px 5px;
    }

    .domo-cart-page h2 {
        font-size: 24px;
    }

    .domo-checkout-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .domo-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .domo-cart-table {
        font-size: 12px;
    }

    .cart-quantity-input {
        width: 50px;
        padding: 3px;
    }

    .cart-remove-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}
